This is my first try at ATTINY1604 serial communication. I'm testing out the hardware and software serial communications by sending 4 bytes at 38400 baud. (one gets remarked out while testing the other)
Problem 1: Printbin sends proper message, except at 600 baud (regardless off baud in Config Com1)
Problem 2: Serout doesn't do anything (pin starts low, stays low)
i dont get what you mean. please show the CONFIG statement and where it writes the wrong setting. maybe you refer to the second sample? please note that i did not specify sync option there. if you do, you will see that bit 4 will be set.
Hi you don't make the sync setting when you select the clock. It doesn't matter anyway. A bug in the HW won't allow synchronization anyway and you have to bypass it, see the procedure I sent. You write 0x05 and you would have 0x15. Ultimately you set the clock to 0x00 as a baseline and wait for the reboot to be performed. RS
[quote:c5835937a1]In your case you need to write 21dec to CTRLA and not 5dec.[/quote:c5835937a1] The option in config "SYNCUPDATE" only sets this bit 4 in CTRLA. it need to be used with other settings. It is not clear to me if you mean there is a wrong setting?
anyway, there are always some bugs in the silicon. as long we know about it, there is no problem.
Hi Mark Yes, it doesn't make sense. It's a bug in the processor architecture. CCMP and CNT Registers Operate as 16-Bit Registers in 8-Bit PWM Mode When the TCB operates in 8-bit PWM mode (CNTMODE in TCBn.CTRLB is 0x7), the low and high bytes for the CNT and CCMP registers operate as 16-bit registers for read and write. They cannot be read or written independently.
Another thing is that if you want to use the TCA clock you have to set the sync bit of the TCB. In your case you need to write 21dec to CTRLA and not 5dec. And restart TCA, but there is another HW bug to watch out for. The TCA Restart Command Does Not Force a Restart of TCB The TCA restart command does not force restarting the TCB when TCB is running in SYNCUPD mode. TCB is restarted only after a TCA OVF
These bugs are in the kernel of both AVR0 and AVR1. With AVR2 they have already fixed the sync bug, but the 8bit register access bug remains.
What you write is very confusing. You also seem to mix up things. I doubt you get a serious reply/help this way. - what do you want to accomplish - what exact is the problem - where is the code - what does not work - what did you tried
I bought my first time attiny 3216 and FTDI (CH340G) and I cannot load a simple program as a test.
yes that is odd in these processors. i dont see the point of having separate registers if you can not update them separately. but i might have missed something in the data sheets. During the last year(s) i have read many of them and some have changed a few times. the registers are derived from the microchip atdf files.
What you write is very confusing. You also seem to mix up things. I doubt you get a serious reply/help this way. - what do you want to accomplish - what exact is the problem - where is the code - what does not work - what did you tried - what do you think readers of the forum understand from this post? best to re-read before you post and imagine and ask your wife/husband or friend if they understand it Also point 1, what do you mean? is it essential? do we really care if you want or not want to update? you can also use MS-DOS of course. 2: so you mean 'it' worked at some stage? and what was that? which micro? and what did you change in the mean time? 3: this seems unrelated. 4 years ago there were no 3216. 4; i dont understand what you write But you have to understand one thing : this is NOT THE ARDUINO forum. it is ok to use that hardware but i have no idea which processors all these boards use. And i do not care too. If you use a board, be specific about the processor. that is the only thing that matters to bascom. 5: normally pictures are ok to explain things but in this case posting some pictures is not good.
normally if i have to ask all these questions i ignore such posts. if a poster does not take the time to inform us why would i waste my time? but i understand language barrier can be a problem. So this is not only to you but anyone that posts. What i dont get is that you are a long time user and posted many times but somehow you still dont get it. that is discouraging. I hope some user can help you or understand what your problem is about.