Beginners: please read this post and this post before posting to the forum.
0 Members and 1 Guest are viewing this topic.
My 5V source and 24V source are separate power sources, isolated from each other.
// USART2 initialization// Communication Parameters: 8 Data, 1 Stop, No Parity// USART2 Receiver: Off// USART2 Transmitter: On// USART2 Mode: Asynchronous// USART2 Baud Rate: 38400UCSR2A=0x00;UCSR2B=0x08;UCSR2C=0x06;UBRR2H=0x00;UBRR2L=0x19; UDR2=190; delay_ms(1000); UDR2=127; while(1);
What should I look for with an Oscope or USART to Hyperterm?
If its hyperterminal, you should see numbers representing what you sent to serial of your Syren.
UDR2=128; UDR2=127; UDR2=64; UDR2=((128 + 127 + 64) & 0b01111111);