The only issue is that their openocd is not open source. You need to email them to get the source code(which I did, they replied me within an hour with buildable full source code of their modified openocd).
I don't see anything about the opamp (OPA) in the datasheet.
No OPA section , nothing in the ADC section or in TIM2 section.
1.4.15 Operational amplifier/comparator (OPA)
The product has built-in 1 group of operational amplifiers/comparators, and the internal selection is linked to
the ADC and TIM2 peripherals. Its input and output can be selected by changing the configuration to select
multiple channels. It supports to amplify the external analog small signal and send it to the ADC to realize the
small signal ADC conversion. It can also complete the signal comparator function. The comparison result is
output by GPIO or directly connected to the input channel of TIMx.
I don't see anything about the opamp (OPA) in the datasheet.
No OPA section , nothing in the ADC section or in TIM2 section.
Its right in the link Dave posted: http://www.wch-ic.com/products/CH32V003.html
Bunch of stuff in the Datasheet as well.
But this seems like a basic datasheet, the reference manual is somewhere else, maybe you are looking at that?Quote1.4.15 Operational amplifier/comparator (OPA)
The product has built-in 1 group of operational amplifiers/comparators, and the internal selection is linked to
the ADC and TIM2 peripherals. Its input and output can be selected by changing the configuration to select
multiple channels. It supports to amplify the external analog small signal and send it to the ADC to realize the
small signal ADC conversion. It can also complete the signal comparator function. The comparison result is
output by GPIO or directly connected to the input channel of TIMx.
I don't see anything about the opamp (OPA) in the datasheet.
No OPA section , nothing in the ADC section or in TIM2 section.
The only issue is that their openocd is not open source. You need to email them to get the source code(which I did, they replied me within an hour with buildable full source code of their modified openocd).
Nice.
Are you now under some sort of license with having that code?
17.2.1 Configuring the extended control register (EXTEND_CTR)
OPA_PSEL
OPA_NSEL
OPA_EN
One register that basicly tells you how to turn it on and off.
I was hoping for gain selection.
I admit , i didn't use opamps in uC before, but that is why i am interested.
The only issue is that their openocd is not open source. You need to email them to get the source code(which I did, they replied me within an hour with buildable full source code of their modified openocd).
Nice.
Are you now under some sort of license with having that code?They are willing to give you their code which are licensed under the GPL license. There is no other legal agreement between you and WCH. You just need to ask them for it. It's just bizarre that they are willing to give out codes upon request but not having a live GitHub repository which can save them so much precious FAE times.
The only issue is that their openocd is not open source. You need to email them to get the source code(which I did, they replied me within an hour with buildable full source code of their modified openocd).
Nice.
Are you now under some sort of license with having that code?They are willing to give you their code which are licensed under the GPL license. There is no other legal agreement between you and WCH. You just need to ask them for it. It's just bizarre that they are willing to give out codes upon request but not having a live GitHub repository which can save them so much precious FAE times.
So you can just take it all and github it for everyone. Only issue is it gets out of date and would essentially be a fork from their version.
But that means someoen can just take it and turn it into a fully community maintained toolchain.
It'll be interesting to see if the makers of the HC-12 433MHz Wireless module update the design to use this chip instead. Original chip is the STM8S003. The only difference is the STM8S has a VCAP pin that needs a cap connected, whereas the CH32V003 uses that pin as a GPIO.
The periphery seems to be a near copy of the STM8S... , so a replacement of that chip as a possible market. It still depends on the volume if it is worth the effort for new firmware (it may still need more than just a recompile, especially if ASM or delay from code run time is used with the STM8) and new EMI tests. Besides the costs the availablity could be an issue - currently for both the STM and WCH parts.
The wch-link usb-serial serial dwnloader does not seem to be a straight tx/rx serial as you said.. Much more like the st-link, even though it shows as a comX, probably made of a ch32v chip with a fw in it. You said the printf did not work - did you try via ft232 something or with the wch-link?
The wch-link usb-serial serial dwnloader does not seem to be a straight tx/rx serial as you said.. Much more like the st-link, even though it shows as a comX, probably made of a ch32v chip with a fw in it. You said the printf did not work - did you try via ft232 something or with the wch-link?
The wch-link usb-serial serial dwnloader does not seem to be a straight tx/rx serial as you said.. Much more like the st-link, even though it shows as a comX, probably made of a ch32v chip with a fw in it. You said the printf did not work - did you try via ft232 something or with the wch-link?
quote from youtube (tmx): "WCH-LinkE is not a generic USB to serial interface. It is a CH32V305 microcontroller implementing the single wire debug protocol used on the V003. Yes, technically that is serial, but it isn’t just a pass through buffer."
Watch to the end of the video, printf worked.
Ok, re serial - I heard it at 2:42.. Great printf works..