Hi
Some queries with regards to the program memory size of a 18f4520 I am currently learning with.
After compiling a demo C pgm with the C18 compiler, Windows File Explorer reported the hex file as 18KB. 18KB is slightly more than half of the 32KB program size on the chip!! And this is just a demo pgm!
Went into PICkit2. The pgm ended on byte 18A8 which is 6312 bytes after which FFFF appeared. Assumed that meant the hex pgm is actually 6312 bytes rather than 18KB as reported by Windows?
1) So what is the actual size of the pgm?
2) Why the discrepancy? Or am I reading and interpreting the info wrongly?
3) How much can 32KB of the 18f4520 do ? If I want to hv hv a pgm that :
- read temperature using a LM35
- get inputs from a 4x4 keypad
- from the inputs, apply some formulae to get some results
- displays all outputs on a LCD module
- count down and count up with beeping
can 32KB of pgm space cut it?
Am quite new to this so all comments welcome.
Thks!
-