2004-06-07 12:25 AM
2011-05-17 03:01 AM
HI!
I've got a simple question! I think it's easy to solve! sorry! but how could i, for example set a port with using C-code! It's very easy to use PSD Express. But, if i want to write it C what must i do? for example set the Port PB0 to high!!!! i know, i have to include uspd3200.h and then? ..... I hope you're not feeling bothered about posting such a topic! But there isn't anybody else nearby, who i can ask!2011-05-17 03:01 AM
Try the following:
xdata PSD_REGS PSD8xx_reg _at_ PSD_REG_ADDR; PSD8xx_reg.DIRECTION_B |= 0x01; // set to output PSD8xx_reg.DATAOUT_B |= 0x01; // set PB0 high Regards sjo