I just got my order of mega48's (14x)
I just started writing some assembly code, but it seems like the "OUT" function only works for a very narrow range of adresses.
Can't use it to set the UART baud rate regs, nor the timer setup.
I managed to make it work using ST (y) and setting up the Y register whit the pointer to UBRR0H.
Is this chip really this hard to work whit?
Only able to use the IN/OUT instruction for the IO ports????