prem0siva
Newbie level 2
Hi,
I am using PIC18f4520 and Microchip mcc18 compiler.
I am able to write data into spi sucessfully using the library spi.h
WriteSPI(0xff); //the value is 1111 1111
How can I write a value which i have received from my USART ? I am able to receive as char. But how can i convert to hex? is conversion to hex is the only way to use my SPI?
I am using it to control a 2 channel 12bit DAC (LTC1448). I would like to use the library of c18.
I have been struggling for 4 weeks.
Thanks,
~Prem
I am using PIC18f4520 and Microchip mcc18 compiler.
I am able to write data into spi sucessfully using the library spi.h
WriteSPI(0xff); //the value is 1111 1111
How can I write a value which i have received from my USART ? I am able to receive as char. But how can i convert to hex? is conversion to hex is the only way to use my SPI?
I am using it to control a 2 channel 12bit DAC (LTC1448). I would like to use the library of c18.
I have been struggling for 4 weeks.
Thanks,
~Prem