Hello again !!!
Well, as matsp had suggested, I have succeeded in transmitting the frame.
I need help in something else now.
I need to configure the General Purpose Input/Output (GPIO) pin of SC18IM700. I need to pull it low.
How do I define it in C?
Thanks for your help.
Last edited by reemaambekar; 12-02-2008 at 05:11 AM.
http://www.nxp.com/acrobat/datasheets/SC18IM700_2.pdf
It seems like writing an 'O' followed by the relevant data for the GPIO port will do the job. Of course, you may have to configure the GPIO port first so that the pin is an output. You need to set PortConf0 or PortConf1 to get that set right.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
You need to set it up according to the table in section 9.2.2, by writitng the corresponding bits in the PortConf1. To do that, you need to use the 'W' command.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
The description is a big vague, but I expect you send the value 0x02, then the value you want to set the register to, and then a 'P' to end the message.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Well, in this case, "register" is just a number you send to the other processor, so you can of course use #define, const or enum to declare a constant equivalent of the register number. That will make it more symbolic, but it will not change what is actually sent out from your processor.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Ok, thanks. Well I figured out a while before that the function 'ASC1_vSendData()' doesnt send anything other than the ASCII characters. I used the ASC0 port to display contents of the array on the hyperterminal. I sent an arraybut it just displays WP.Code:{'W',0x02,0x08,'P'}