2030 views|2 replies

1w

Posts

16

Resources
The OP
 

[RISC-V MCU CH32V103 Review] 4. Take a look at the temperature + your opinion on RISC-V [Copy link]

 

The chip itself has a temperature sensor, and data is collected through the 16th channel of ADC.

The routine first creates a project and then imports all files of the routine USER into the USER directory in the project.

In this example, the ADC is first declared as an independent non-injected, non-externally triggered conversion:

ADC_DeInit(ADC1);
	ADC_InitStructure.ADC_Mode = ADC_Mode_Independent;
	ADC_InitStructure.ADC_ScanConvMode = DISABLE;
	ADC_InitStructure.ADC_ContinuousConvMode = DISABLE;
	ADC_InitStructure.ADC_ExternalTrigConv = ADC_ExternalTrigConv_None;
	ADC_InitStructure.ADC_DataAlign = ADC_DataAlign_Right;
	ADC_InitStructure.ADC_NbrOfChannel = 1;
	ADC_Init(ADC1, &ADC_InitStructure);

Then when converting, the channel to be converted will be declared each time, and then converted, and the average value of 10 times will be taken:

ADC_RegularChannelConfig(ADC1, ch, 1, ADC_SampleTime_239Cycles5 );
	ADC_SoftwareStartConvCmd(ADC1, ENABLE);

	while(!ADC_GetFlagStatus(ADC1, ADC_FLAG_EOC ));

	val = ADC_GetConversionValue(ADC1);

	return val;

Here are the results:

This is more than 16 degrees, which is a little bit lower than the temperature at my home. My home meets the standard temperature of 18 degrees. Maybe it is due to the packaging material.

I have been looking at RISC-V these days and I feel that there is not much difference in programming between it and ARM CORTEX-M3, and the codes can be used universally. So for me, RISC-V and the previous CORTEX-M3 are the same.

Some voices in China seem to say that RISC-V is an opportunity for domestic chips to surpass foreign ones. What I want to say is that it depends on the hardware, that is, whether the chips can be manufactured.

Anyway, it has no impact on my programming. I suddenly saw RISC-V a few days ago. Now I suddenly remembered the story of "The Donkey in Guizhou". There was no donkey in Guizhou. A curious man brought one to Guizhou by boat, but when he arrived, he found that it was useless and left it at the foot of the mountain. . . . . . .

This post is from Domestic Chip Exchange

Latest reply

This post was last edited by MianQi on 2021-2-1 11:52 “Can the chip be manufactured?” The chips are all designed by themselves based on the ARM architecture. There is almost no possibility that the ARM foundation can be replaced at present. Microchip, ST, TI, Silicon Labs, all do the same. The main thing that manufacturers can do is to choose and match peripherals. When it comes to the selection and matching of peripherals, it is a matter of "beauty and talent are not apparent", so I personally think that the key is to build an industry ecosystem. Based on my trial experience during this period, the programming environment, process, and API of Qinheng's product, that is, the interaction with programmers, can be said to be very smooth, except for some flaws in some places. This is very important, because from the perspective of chip manufacturers, the end users of electronic products today are not consumers, but developers, specifically programmers, of all levels and professional backgrounds, including enthusiasts and makers. An ecosystem similar to Arduino seems to be the focus of Qinheng's consideration.   Details Published on 2021-2-1 11:50
Personal signaturehttp://shop34182318.taobao.com/
https://shop436095304.taobao.com/?spm=a230r.7195193.1997079397.37.69fe60dfT705yr
 
 

36

Posts

0

Resources
2
 

I didn't see any difference in usage during the test. However, the difference lies in the intellectual property rights. Each IC must pay for the intellectual property rights. In addition, for RISC-V, you should look at K210, which has more powerful functions.

This post is from Domestic Chip Exchange
 
 
 

305

Posts

0

Resources
3
 
This post was last edited by MianQi on 2021-2-1 11:52

“Can the chip be manufactured?”

The chips are all designed by themselves based on the ARM architecture. There is almost no possibility that the ARM foundation can be replaced at present. Microchip, ST, TI, Silicon Labs, all do the same. The main thing that manufacturers can do is to choose and match peripherals.

When it comes to the selection and matching of peripherals, it is a matter of "beauty and talent are not apparent", so I personally think that the key is to build an industry ecosystem.

Based on my trial experience during this period, the programming environment, process, and API of Qinheng's product, that is, the interaction with programmers, can be said to be very smooth, except for some flaws in some places.

This is very important, because from the perspective of chip manufacturers, the end users of electronic products today are not consumers, but developers, specifically programmers, of all levels and professional backgrounds, including enthusiasts and makers. An ecosystem similar to Arduino seems to be the focus of Qinheng's consideration.

This post is from Domestic Chip Exchange
Personal signature

“Everyone wants the project to be good, fast, and cheap... pick two.”

- Unknown

 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list