Deqing Sun
Deqing Sun
Some quick compare: https://github.com/pouriap/TinyRF/blob/master/src/TinyRF_TX.cpp https://github.com/sparkfun/SparkFun_RadioHead_Arduino_Library/blob/master/src/RH_ASK.cpp TinyRF uses pulse-width encoding (No consecutive 0 or 1 guaranteed) and Radiohead uses high low directly with 4B6B encoding. Their preambles are a bit different
Using Math Routines in Interrupt Service Routines (ISRs) [Using Math Routines in Interrupt Service Routines (ISRs)](https://community.silabs.com/s/article/common-pitfalls-when-using-sdcc?language=en_US) Function | Description | Makefile belongings -- | -- | -- _mulint.c | 16-bit...
You may have to edit the core to do the job. SDCC's linker is not very good at linking optimization
This is a glitch caused by hardware limitation, there may be caused by a not well designed buffer in CH552. There was FIFO mentioned in datasheet so there should be...
I guess the PWM is WCH's invention and not connected to a regular timer. I've posted a question about this glitch in their support forum.
@dwillmore for testing purpose, edit https://github.com/DeqingSun/ch55xduino/blob/ch55xduino/ch55xduino/ch55x/cores/ch55xduino/main.c and declare your interrupt handler there. This is required by SDCC code such as ```void Timer2Interrupt(void) __interrupt (INT_NO_TMR2);``` serves that purpose. Then in you...
Thanks for the test. I'll wait for the tech support and see if this is the best way to do it.
It seems there is a bug even the official engineer is not willing to confirm. But they can not deny either. So I think it is a bug. https://www.wch.cn/bbs/thread-103851-1.html The...
Because what you proposed does not solve the problem when you write 0 when the pwm is 1, that is a special case.
Yes, that's right. I will see what the best way to do it.