Give Me Suggestions about PIC16F1509

OP (Company: none) #5033789
Rate this post
• ▲ useful
▼ not useful
Good day,all

I am currently involving in a project by using PIC16F1509.( the 
PIC16F1509 PDF: 
http://www.kynix.com/uploadfiles/pdf8798/PIC16F1509-E2fML.pdf ) I 
compiled it pass hi-tech9.83. However, there are about 100 lines can’t 
compile into the 8K room. The direct compile can’t be passed because the 
room to save codes is not enough.
Can anyone give me some feasible suggestions so that I needn’t choose 
chip again.

Please give me some advice in choosing compiler, code optimization or 
coding !

Thanks again !
Best regards~
Guest #5033802
Rate this post
• ▲ useful
▼ not useful
Is your entire code just 100 lines? The only way to fill 8kB with 100 
lines of code is to use expensive library functions like printf() or 
floating point math. You should avoid these. But it's hard to help 
without seeing your code.
Guest #5033820
Rate this post
• ▲ useful
▼ not useful
Without showing us you code, it's nearly impossible to give good advice 
how to save code.
One idea ist to put some identical blocks of code into a subfunction.

What optimization setting of HiTech 9.83 do you actually use?
Do you have free version ("Lite mode") or "Pro" version (not free, you 
have to pay for). The "Pro" version does higher optimization.

See:
http://www.microchip.com/forums/m731823.aspx

Yours

Reply

A question of your own? This thread is over 9 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.