EmbDev.net

Forum: µC & Digital Electronics Give Me Suggestions about PIC16F1509


Author: Ling Ling (Company: none) (ling1995)
Posted on:

Rate this post
0 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/PIC16F150... ) 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~

Author: Andreas (Guest)
Posted on:

Rate this post
0 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.

Author: Eric (Guest)
Posted on:

Rate this post
0 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

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig