CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

PCWHD is not ready for 16 bit programming

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
selsen



Joined: 16 Mar 2007
Posts: 9

View user's profile Send private message

PCWHD is not ready for 16 bit programming
PostPosted: Wed Jul 23, 2008 11:50 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group