-
LPC2124AD interface experiments, and to share with you!
LPC2124AD接口实验,和大家分享!-LPC2124AD interface experiments, and to share with you!
- 2022-09-07 13:15:02下载
- 积分:1
-
2410例为钙
2410 example for calc
- 2022-04-07 09:23:30下载
- 积分:1
-
用FPGA做的RAM,源码,调试通过,有工程
用FPGA做的RAM,源码,调试通过,有工程-FPGA to do with RAM, source code, debugging through, there are works
- 2023-04-28 05:45:03下载
- 积分:1
-
本书详细介绍了TMS320F2812芯片的基本特点、硬件结构、内部功能模块的基本原理等内容...
本书详细介绍了TMS320F2812芯片的基本特点、硬件结构、内部功能模块的基本原理等内容-The book details the basic characteristics of TMS320F2812 chip, hardware structure, the internal function modules, etc. The basic principle
- 2023-01-16 14:50:04下载
- 积分:1
-
绝对原创,开源一STM32项目,CAN,UART,Input检测 原创相对高效性能与代码重用平衡思路(缓冲队列加软中断),可直接做工程模板
1、CAN收发队列
使用内存FIFO缓冲CAN帧,适合大数据量通信;并使用内部软中断处理CAN数据,相当于事件响应,综合应该比查询方式节省不少时间,也应该比OS调度省点时间。Can.C:底层处理,Communi.C:与应用层高相关。 应用层处理流程用函数指针表的方式调用减少代码量及阅读整齐;实现CAN各种错误记录机制。已初步测试,该机制可用。
CAN处理流程:
接收:CAN1_RX0_IRQHandler_Name (void), CAN1_RX1_IRQHandler(void)
接收中断,CAN_QueueWriteQuick()将当前的有效报文压入内存FIFO,压入的数据为整个CAN邮箱数据,所以后续的处理函数可以分辨出完整的数据。
void CAN1_RX0_IRQHandler_Name (void) // CAN1_RX0_IRQHandler_Name
{
/*
FIFO从空状态开始,在接收到第一个有效的报文后,FIFO状态变为挂号_1(pending_1),
硬件相应地把CAN_RFR寄存器的FMP[1:0]设置为’01’(二进制01b)。
软件可以读取FIFO输出邮箱来读出邮箱中的报文,然后通过对CAN_RFR寄存器的RFOM位
设置’1’来释放邮箱,这样FIFO又变为空状态了。如果在释放邮箱的同时,
又收到了一个有效的报文,那么FIFO仍然保留在挂号_1状态,软件可以读取FIFO
输出邮箱来读出新收到的报文。
如果应用程序不释放邮箱,在接收到下一个有效的报文后,FIFO状态变为
挂号_2(pending_2),硬件相应地把FMP[1:0]设置为’10’(二进制10b)。
重复上面的过程,第三个有效的报文把FIFO变为挂号_3状态(FMP[1:0]=11b)。
此时,软件必须对RFOM位设置1来释放邮箱,以便FIFO
- 2022-03-21 07:31:29下载
- 积分:1
-
用于mcf52259的嵌入式操作系统,具有很强的鲁棒性。适用范围广泛的…
用于mcf52259的嵌入式操作系统,很健壮。应用广泛。-For mcf52259 embedded operating system, is very robust. Wide range of applications.
- 2022-05-25 22:09:59下载
- 积分:1
-
This example program shows how to configure and use the
A/D Converter of the fo...
This example program shows how to configure and use the
A/D Converter of the following microcontrollers:
* Philips LPC 2114/2119/2124/2129/2131/2132/2138/2194
After configuring the A/D Converter, the program reads
A/D channel 0 and outputs the converted value using the serial
port.
To run this program...
1. Select the Device (Project - Options for Target - Device)
2. Build the project (Project - Build Target)
3. Start the uVision Debugger
4. Open the Serial Window (View - Serial Window 1)
5. Click Run (F5)
6. Click on the Toolbox buttons to change input voltages
A debug script (debug.ini) creates buttons that set different
analog values in A/D channels. As the program runs, you
will see the A/D input and output change.
Other buttons create signals that generate sine wave
or sawtooth patterns as analog inputs. µ Vision3 users may
enable the built-in Logic Analyzer to view, measure and compare
these input signals grap
- 2022-01-31 01:19:45下载
- 积分:1
-
S3C2440的启动代码和io测试程序,不错哦
S3C2440的启动代码和io测试程序,不错哦-S3C2440 startup code and io test procedure, yes Oh
- 2022-01-25 16:50:23下载
- 积分:1
-
AVR128L DS18B20液晶显示的程序
绝对好使,改一下接口便可应用...
AVR128L DS18B20液晶显示的程序
绝对好使,改一下接口便可应用-AVR128L and ds18b20 display
- 2022-05-13 22:38:13下载
- 积分:1
-
Touchscreen on S3C2410 application examples
触摸屏在S3C2410上的应用实例-Touchscreen on S3C2410 application examples
- 2022-02-12 14:25:53下载
- 积分:1