problem on atmea 16 tx(USART) (by cux_)
dear jonathan
1. im have a comunication problem on atmega 16 with ld micro compiler. I can't transmit data from mikro to computer via USART, but I can receive data from computer.
2. Why in atmega 16 can't PWM output?although there are pins on atmea16 oc2(PD7) and oc0(PB3) for PWM output.
thanks jonathan.
(no subject) (by Jonathan Westhues)
(1) Your program looks okay. Perhaps you have something set wrong in your terminal program on the PC side (should be same baud rate, 8N1, no flow control), although I'm not sure why that would be wrong for transmit but not for receive. Or perhaps the TX pin just isn't connected? If you have an oscilloscope, then you can try to follow the data through.
(2) See
http://cq.cx/ladder-forum.pl?action=viewthread&parent=532