selsen
Joined: 16 Mar 2007 Posts: 9
|
PCWHD is not ready for 16 bit programming |
Posted: Wed Jul 23, 2008 11:50 pm |
|
|
Hi all;
I am using PCWHD 4.076
I am trying to learn programming dsPIC30F4013 but there are lots of faults in PCWHD compiler.
I all changed LCD.C driver to use it with dsPIC
for example;
BYTE LCD_INIT_STRING[4] = {0x20 | (lcd_type << 2), 0xc, 1, 6};
lcd2.data = n;
lcd_send_nibble(n & 0xf);
lcd_send_nibble(n >> 4);
these codes are not working with dsPIC
here are my changes with this codes
int8 LCD_INIT_STRING[4];
LCD_INIT_STRING[0]=40;
LCD_INIT_STRING[1]=12;
LCD_INIT_STRING[2]=1;
LCD_INIT_STRING[3]=6;
n=n<<1;
lcd2=n;
h=n >> 4;
lcd_send_nibble(h);
h=n & 0xf;
lcd_send_nibble(h);
There must be lots of faults that I can not see |
|