Hello again !!!!
I have a question. If I have to set any GPIO pin of a particular IC without the bridge chip(in this case,without using the W command) how can I do it?
Printable View
Hello again !!!!
I have a question. If I have to set any GPIO pin of a particular IC without the bridge chip(in this case,without using the W command) how can I do it?
I have absolutely no idea. You'd have to talk to someone who knows that chip.
--
Mats
Hello !!!
I am transmitting the following data via ASC1 port.
I know that the data is being sent to the hardware since I can view it using a Scopemeter.Code:void ASC1_send()
{
ASC1_vSendData ('W'); //write to internal reg command
ASC1_vSendData (2); //push pull o/p config
ASC1_vSendData (8); //set portconf1 to 0x08
ASC1_vSendData ('P'); //stop
ASC1_vSendData ('O'); //write to GPIO
ASC1_vSendData (0); //set it to 0
ASC1_vSendData ('P'); //stop
ASC1_vSendData ('S'); //start
ASC1_vSendData (160); //device address=A0=>160 in decimal
ASC1_vSendData (07); //data
ASC1_vSendData (11);
ASC1_vSendData (97);
ASC1_vSendData (80);
ASC1_vSendData (00);
ASC1_vSendData (40);
ASC1_vSendData (55); //data
ASC1_vSendData (250); //data
ASC1_vSendData ('S');
ASC1_vSendData (161);
ASC1_vSendData (07);
ASC1_vSendData ('P');
}
void ASC1_vSendData(uword uwData)
{
ASC1_TBIC_IR = 0; // reset transmit buffer interrupt request set = 1;
ASC1_TBUF = uwData; // load transmit buffer register
while (ASC1_TBIC_IR == 0);//wait till transmission finishes
} // End of function ASC1_vSendData
I want to introduce a stop condition after the last char ie ASC1_vSendData('P') is sent. How can I do it?
Hello!!!
I want to generate a simple counter which will give me a certain delay eg 500msec in between 2 bytes of data that i am sending. How can I generate the counter??
Thanks in advance for your help.
So use delay(500); that will give you at least 1/2 a second. Typically more, with Windows.
There is no visible counter to delay(), however.