नवीनतम

Limits of Indirect Approach Through FSR in PIC16

 
Friends, today while writing a programme for the LCD I got the below message upon compilation. The built was fine, but with a warning that the IRP bit must be set manually for a specific message.
clip_image002
And if I run this programme on the microcontroller, then the display messages are random and anonymous.
The IRP bit is used for the bank selection in the microcontroller though indirect addressing.
clip_image004
I went through the datasheet and the MicroE compiler help section and found the solutions that to make the programme run prefect on the microcontroller in indirect addressing mode
  • · The IR bit must be set manually for the bank selection
  • · Reduce the message size so that ROM used is lower
  • · At last switch to PIC 18FXX
So for in this programme I reduced the ROM used and the error was eliminated and the programme ran as desired.
clip_image006





कोई टिप्पणी नहीं