Atmega16 - BSP and Task List

Publisher:HarmoniousSoulLatest update time:2022-01-12 Source: eefocusKeywords:Atmega16 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Now we start to rewrite all the previous functional modules using the AVR-Atmega16 platform.


This allows them to run as an independent task on a time-triggered scheduler, and also to run in the timer task scheduling module of the front-end and back-end systems.


-------------------------------------------------------------------------------------------------------------------------------------


Development environment: AVR Studio 4.19 + avr-toolchain-installer-3.4.1.1195-win32.win32.x86

Chip model: ATmega16

Chip frequency: 8MHz


-------------------------------------------------------------------------------------------------------------------------------------


task list:

1. AVR BSP: fuse, IO, WDT, timer, PWM, etc.


2. Basic tasks: digital tube, infrared, RS232-UART, etc.


3. Front and back structure, event management (transplanting other people's code - not posting implementation code - posting examples), buttons (transplanting other people's code - not posting implementation code - posting examples), LCD


4. Hybrid scheduler, RS485-UART


5. IIC Flash, SPI Flash, SPI TFT


7. RS485-Modbus,


8. (To be determined)


-------------------------------------------------------------------------------------------------------------------------------------


Task catalog summary:

Catalog 1: AVR BSP

(1). Watchdog

http://blog.csdn.net/manon_des_source/article/details/51540217


(2). Timer 2

http://blog.csdn.net/manon_des_source/article/details/51564339


(3). Timer 1

http://blog.csdn.net/manon_des_source/article/details/51757791

(4). SPI interface

http://blog.csdn.net/manon_des_source/article/details/53127979



-------------------------------------------------------------------------------------------------------------------------------------

Catalog 2: Task Module

(1). Digital tube

http://blog.csdn.net/manon_des_source/article/details/51783675

(2). SPI Flash and SPI TFT

http://blog.csdn.net/manon_des_source/article/details/53127979


-------------------------------------------------------------------------------------------------------------------------------------

Catalog 3: Foreground, Background and Scheduler

(1) Front-end and back-end structure, time-triggered scheduler (hybrid scheduler), event management module

http://blog.csdn.net/manon_des_source/article/details/51811758


Keywords:Atmega16 Reference address:Atmega16 - BSP and Task List

Previous article:D001-Development Tools-AVR Studio Environment Configuration and Usage Notes
Next article:B001-Atmega16-digital tube

Recommended ReadingLatest update time:2024-11-17 06:56

Design of vehicle side slip detection device based on ATmega16
The safety of cars in the process of driving is a very important issue in daily life, and the harm caused by side slip is very great. A car side slip detection device based on ATmega16 is proposed. This system introduces the ATmega16 microcontroller as the core, as well as the positive and negative power supply voltag
[Microcontroller]
Design of vehicle side slip detection device based on ATmega16
How to use external clock in ATmega16 simulation in proteus
When simulating atmega16 in proteus, there are always problems when selecting external clock. The red English in the above picture says that the CKSEL fuse bit is specified as an external oscillator, but the system external clock frequency is not determined. After modifying the clock in this way, you can use the e
[Microcontroller]
How to use external clock in ATmega16 simulation in proteus
Implementation of digital optical power meter system based on ATmega16
Preface Digital optical power meter is a portable instrument controlled by a single-chip microcomputer that can measure the strength of optical signals. It is an important instrument for laying fiber-optic communication trunk lines, equipment maintenance, scientific research and production. However, tradition
[Microcontroller]
Implementation of digital optical power meter system based on ATmega16
RTEMS's MINI2440 QEMU port: bsp_libc_init and rtems_libio_init
I have been working like crazy on RTEMS transplantation during this period, but to no avail. I encountered the following problems. 1. bsp_libc_init problem, before execution gdb debugging information ricky@ricky-laptop:~/rtems/rtems-4.9.5/examples-4.9.5/hello_world_c$ arm-rtems4.9-gdb o-optimize/hello
[Microcontroller]
ATmega16 Minimum System Hardware Design
The basic AVR hardware circuit includes the following parts: 1. Reset circuit 2. Crystal oscillator circuit 3. AD conversion filter circuit 4. ISP download interface 5. JTAG simulation interface 6. Power supply   The following is an analysis of the above basic circuit using the AVR entry-level chip ATmega16L-8
[Microcontroller]
ATmega16 Minimum System Hardware Design
ATmega16 DS1302 source code
//mega16 7.3728M Hz quartz crystal i CC avr6.31a //Related definitions: #define uint unsigned int #define uchar unsigned char #define DS1302_RST 0 //pc0 #define DS1302_SDA 1 //pc1 #define DS1302_SCLK 6 //pc6 //ds1302 related //DS1302_RST=1 #define Set_DS1302_RST() PORTC|=1 DS1302_RST //DS1302_RST=0 #define Clr_DS1302_
[Microcontroller]
Specific steps and methods for creating and porting K10 BSP packages (Part 4)
4. Debugging of BSP package code   4.1. Create a simple task and run it   In order to prove that the created BSP can work properly, we build a simplest IAR project here, as shown in Figure 9, which includes the BSP library of K10DN512 based on MQX 4.0 that we created.      Figure 9 Creating an IAR project   
[Analog Electronics]
Specific steps and methods for creating and porting K10 BSP packages (Part 4)
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号