Hi,
are you sure the numbers apply to same "memory units" ???
Alain
Hi,
are you sure the numbers apply to same "memory units" ???
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
The PIC18F4520 have X Kbytes of Flash memory and can store up to Y single-word instructions! Look the datasheet.
When I migrated to 16f877 to 18f452 I was think in 2x the memory of the 16f877, then I perceved it also. Is normal, but I don't know to explain better, sorry!
Pimentel
Ok Pimentel obrigado,
Vi que voce e' brasileiro,
Entao o final da memoria apontada no compilador pelo mcs nao 'e 16384 para o 18f452 e sim 32768.esta correto isto ?
Fala aí colega, blz?
acho que é isso sim ( no datasheet diz 32k bytes de flash (32768 se vc fez as contas,rsrsrs) e 16384 #single word instructions). No MCS deve mostrar words usadas então acho que é isso sim!
É mais ou menos por aí...eu tinha uma aplicação usando um 16F877A que tem 8k de flash, mas eu precisava de mais memória. Então migrei p/ o 18F452 e esperava que o mesmo código que eu tinha no 877A ficasse com o mesmo tamanho e p/ minha surpresa qdo compilei notei que tinha quase 16k...daí lendo o datasheet vi esse lance de single word...e já viu né. Vc deve ter tido essa mesma dúvida... eu acabei de fazer um teste...eu tenho um programa usando o 18f452 que ao compilar mostra 5278 words usadas....daí eu mudei p/ PIC 16F877A e compilei de novo...deu 3124 words. Não sei se ajudou mas é isso mesmo...denorex...parece mas não é, kkkk
abraço
Pimentel
Last edited by Pimentel; - 7th April 2011 at 01:45. Reason: esqueci de comentar
Bookmarks