搜索资源列表
code
- 单片机和上位机交互通讯的简单源程序(汇编,可用proteus的虚拟终端仿真)-MCU and host computer communication simple interactive source (a compilation of available virtual terminal emulation proteus)
RTC
- 初始化并运行 RTC,然后每隔1 秒钟读取一次时间值,并通过串口向上位机发送,上 位使用EasyARM 软件的仿真万年历窗口进行显示。-Initialize and run the RTC, and then every 1 second read time and sent through the serial port up crew, upper use EasyARM software simulation calendar display window.
ADC
- 3.A/D程序设计与电路仿真 通过AD对外部电压进行AD采样,然后利用SPI接口对采样回来的数据进行显示,并将转换结果通过UART发给上位机进行显示。 首先设置需要显示的数组,使用PINSEL0、PINSEL1寄存器设置串口0的连接端口,使用IO0DIR设置74HC595的控制口,初始化串口0,使用U0LCR、U0DLM、U0DLL、U0LCR寄存器设置波特率,初始化SPI接口,设置SPI的时钟分频、接口模式。 其次对ADC模块进行设置,通过移位设置寄存器ADCR选择通道0,设置转换