May be missing somthing ... 2 bugs in first 10 lines of code
Posted: Tue Oct 06, 2009 7:23 am
I'm trying to get hid-data example to work on tiny2313. I only had a 16M crystal and have been fighting for a few days trying to get this to work. No joy yet.
Found a couple of very minor bugs ... I think:
DBG1() statement used before odDebugInit().
Looking at odDebugInit()
DDR for Tx is not set as output. Tiny2313 is a few hundreds bytes short of memory to compile /w debug anyways. Would be nice to support double clock rate too.
Mailman just dropped by and left me a bunch of Tiny45's. Will try this part instead. 12Mhz crystals should arrive in the next day or so. This is a lot harder than expected.
/RJ
Found a couple of very minor bugs ... I think:
Code: Select all
int main(void)
{
uchar i;
wdt_enable(WDTO_1S);
DBG1(0x00, 0, 0); /* debug output: main starts */
odDebugInit();
...
}
DBG1() statement used before odDebugInit().
Looking at odDebugInit()
Code: Select all
static inline void odDebugInit(void)
{
ODDBG_UCR |= (1<<ODDBG_TXEN);
ODDBG_UBRR = F_CPU / (19200 * 16L) - 1;
}
DDR for Tx is not set as output. Tiny2313 is a few hundreds bytes short of memory to compile /w debug anyways. Would be nice to support double clock rate too.
Mailman just dropped by and left me a bunch of Tiny45's. Will try this part instead. 12Mhz crystals should arrive in the next day or so. This is a lot harder than expected.
/RJ