disable the UART transmitter on the 88

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
ulao
Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

disable the UART transmitter on the 88

Post by ulao » Tue Apr 07, 2009 1:42 am

I'm having a very difficult time assessing the UART transmitter functionality. It would stand to reason that using the atmega88 style chip could compromise pins pd0 and pd1. My project is sort of stuck using the pins for my usb communication. From what I have read there is a very good chance the UART functions are in use. I can not determine if that is the case nor can I feel confident I have disabled it. I would like to avoid rewriting to save on reprint a lot of PCBs and just rule out this UART bit all together. Would anyone be able to assist in this matter?

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Re: disable the UART transmitter on the 88

Post by christian » Sat Apr 11, 2009 3:43 pm

The USART is disabled after reset. AVR-USB leaves it disabled unless you have turned on debugging.

ulao
Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

Re: disable the UART transmitter on the 88

Post by ulao » Sat Apr 11, 2009 8:58 pm

And if I could, what would turn on the debug, the watch dog? My code has wdt_enable and wdt_reset called in a few spots.

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Re: disable the UART transmitter on the 88

Post by christian » Sat Apr 11, 2009 9:10 pm

To enable debugging in AVR-USB, compile with -DDEBUG_LEVEL=1 or -DDEBUG_LEVEL=2. Debug output is sent to TxD at 19200 bps consisting primarily of hex dumps.

I would recommend to enable the watchdog only if everything else works.

ulao
Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

Re: disable the UART transmitter on the 88

Post by ulao » Sat Apr 11, 2009 9:34 pm

thx christian, I appreciate it

Post Reply