Hardware environment: D70F3630 (D70F3377A)
At the beginning, I encountered many problems, mainly because I was not familiar with the hardware structure.
The first problem is that the hardware simulation can proceed normally, but after the hex file is generated and downloaded to the target development board, the system will reset inexplicably.
I was troubled by this problem for 3 days, and finally found out that it was because OptionBytes was not set. This OptionBytes is used to set some clock selection and frequency multiplication information, so it must be added, and the watchdog timer must be disabled at the beginning of the main function. There is an option.s85 file in the code generated by Applilet2 for V850ESFx3. As long as you include this assembly file in your project, you can set OptionBytes.
;****************************************************** ******************************
;* Global define
;********************** *************************************************** **********
#define CG_OPTION7A 0x00
#define CG_OPTION7B 0x80
#define OPT7C 0x00
#define OPT7D 0x00
#define OPT7E 0x00
#define OPT7F 0x00
;****************** *************************************************** ************
;* This is the default initialization string of the Option Byte(s).
;* For details about valid values and their meaning,
;* please have a look into the device User's manual
;****************************************************** ****************************
COMMON INTVEC:CODE:ROOT(2)
ORG 7AH
`OPTBYTES`:
DB CG_OPTION7A
DB CG_OPTION7B
DB OPT7C
DB OPT7D
DB OPT7E
DB OPT7F
END
{
WDTM2 = 0x1F;
... ...
}
The second problem is that external interrupts do not respond.
This is due to hardware reasons. The buttons on the MCU forgot the pull-up resistor and only had a capacitor to ground, so they were unable to respond to interrupt events.
The buttons connected to the MCU must be equipped with pull-up resistors.
Finally, here is the simplest project list diagram
Previous article:NEC V850 General Purpose I/O Ports
Next article:NEC D70f3630 (3377) port operation
Recommended ReadingLatest update time:2024-11-15 18:26
- Popular Resources
- Popular amplifiers
- Teach you to learn 51 single chip microcomputer-C language version (Second Edition) (Song Xuefeng)
- System Management Bus 3.2
- Key technologies for inverter control of new energy access to smart grids
- Three-Phase 11 kW PFC + LLC Electric Vehicle On-Board Charging (OBC) Platform User Manual (ONSEMI Semiconductor)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Ranking of installed capacity of smart driving suppliers from January to September 2024: Rise of independent manufacturers and strong growth of LiDAR market
- Industry first! Xiaopeng announces P7 car chip crowdfunding is completed: upgraded to Snapdragon 8295, fluency doubled
- P22-009_Butterfly E3106 Cord Board Solution
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- STM32F7 CubeMX automatically generates ADC self-calibration program
- The applications of TI audio chips used in smart speakers are revealed.
- ART-Pi evaluation application RL-TCPnet realizes Ethernet transceiver function and DTU
- Is it just simple impedance control? Answer with real examples!
- [NXP Rapid IoT Review] Hello Sensor
- What are the advantages of electronic load switches over MOS or transistors as output control? Now many domestic semiconductor...
- Lighter igniter electric shock/ignition principle
- This is the second time I haven't seen any replies in the past few days. The pattern is: there are replies on the 20th floor, but no more on the 21st floor; there are replies on the 40th floor, but no more on the 41st floor...
- Find TI, NXP, ALTERA, XILINX, ST, Microchip factory stock chips
- Record the use of TM1668 driver