Type in the full discussion title or a part of it.
Discussion Title Created date
SPI CS issue on ATtiny816 (ATtiny1 family)
I've used the following code to setup SPI communication & send data commands: void SPIInit(void) { PORTMUX.CTRLB = PORTMUX_SPI0_bm; PORTC.DIRSET = PIN0_bm | PIN2_bm...
Saturday, 20 January 2018 - 19:07
char view in watch window
I have an input buffer from the UART which holds a string. If I'm adding the array like so: buffer,s I can see the content. If I'm interested to add all the individual cells...
Tuesday, 9 January 2018 - 10:06
Can't disable clock divider in ATtiny816
The clock (20MHz) is divided by 6 by default. I would like to disable the divider so that CLK_PER will also be 20MHz. As far as I could understand from the datasheet the following...
Monday, 8 January 2018 - 22:44
Unable to start debug session on ATtiny816 project under Studio7
I have a new project with all the default settings under Studio7, trying to run debug & break brings up the following message: What could cause this?  
Sunday, 7 January 2018 - 11:15
What could be the reason for a "wrong" return val?
I have the following struct in a C file that hosts functions to drive the DFPlayer MP3 module (this is not in main.c): struct DFPlayerData { uint8_t numberOfTracks; uint8_t...
Saturday, 23 December 2017 - 17:14
USART polled get byte with timeout - not working
I'm using timer0 as a timeout timer to read data from UART. The code looks as so: uint8_t UARTGetByte(void) { // Setup timer0 for timeout check OCR0 = 255; // ~0.03264 sec...
Sunday, 17 December 2017 - 00:31
How come a line is not executed?
I have the following function: int16_t DFPlayerSendCommand(uint8_t command, uint8_t parameter) { uint8_t tempCommand[10] = {0x7E ,0xFF ,0x06 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00...
Tuesday, 12 December 2017 - 22:02
how to limit rand() range?
According to the libc documentation, it seems that rand() has an upper limit set by RAND_MAX macro which defaults to 0x7FFF. I would like to cap the max. number at different...
Tuesday, 12 December 2017 - 00:24
Advantech USB-4761 8-ch Relay and 8-ch Isolated Digital Input USB Module
Read all about it here : http://www.advantech.com/products/1-2mlkno/usb-4761/mod_c1e301ab-cdc8-45c0-b610-6aea44b544ae   Buy / offer here: http://r.ebay.com/CqvMJf
Monday, 11 December 2017 - 17:49
Why UART module keeps on sending data?
Using ATtiny104 + GCC.   I have the following UART functions: void UARTInit(void) { power_usart_enable(); UBRRH = (uint8_t)(BAUDRATE >> 8); UBRRL = (...
Saturday, 2 December 2017 - 10:38
A more stable way to develop / debug serial communication?
For several days now I'm writing & debugging code that communicated between and AVR and another device over UART. To "tap into the action" I am using my computer, running a...
Friday, 1 December 2017 - 12:45
ATtiny102 / 104 datasheet error?
I just got the ATtiny104 Xplain mini micro something something dev. board and noticed that UART registers have numbers as if the MCU has several modules, which it does not. Is...
Wednesday, 29 November 2017 - 08:04