Posts

Showing posts from October, 2022

CH552KCS

 20221019.3 These two sites are useful: [沁恒单片机系列]一、Keil中添加沁恒单片机型号_Magnin的博客-CSDN博客 CH551、CH552、CH554 、CH558、CH559下载步骤_zfysis的博客-CSDN博客_ch554 20221021.5 I came across the 6800 in the early 1980s. But the ROMless Intel 8031 was the first microcontroller I tried to develop. Using a large breadboard, I used an UV-EPROM to make the 8031 running endlessly. Then using the asynchronous RS232 port, I arranged for a program, written in assembly language, to be downloaded into a RAM chip and executed by the 8031. Othe microcontrollers and microprocessors were similarly tested without using the costly emulator. The set up was most simple with the MC68HC811E2, which was used in some student projects. That was long ago. It seems the RS232 is making a come-back, even though the USB has removed the physical RS232 port. Here comes the CH552, an 8031 with the USB, and the SPI replacing the old shift register.

ATmega16KCS

Image
20221007.5 Continue from:  Programming Microcontrollers: ATMEGA16A (programmingmicrocontrollerskohcs.blogspot.com) IAR Embedded Workbench for Microchip AVR 7.30.5 AVRDUDESS 2.14 20221008.6 This would be a rather straight forward set up for the hardware. Although it is a continuation, some rewriting may be useful. IAR Embedded Workbench             Create a New C main Project             Select ATmega16 as the processor             Select ‘Other’ for the linker output             Make the active project   AVRDUDESS             Select the appropriate programmer             Detect the MCU             Open the ‘.90’ file produced by the Workbench             Flash the file to the ATmega16                         Some 100+ bytes would be written. 20221009.7 The following program would toggle an LED (with a series resistor) connected to Port A bit 0. //  AT01LEDt    Toggle Port A bit 0     iRC 1 MHz  #include <iom16.h> int main( void ) {   int i;   PORTA &= ~