资源简介
该程序是基于msp430f5529开发板的低频频率测量计,用板子上自带的液晶显示,附有液晶驱动程序

代码片段和文件信息
/*
* Dogs102x6.c
*
* Created on: 2013-7-16
* Author: 刘陈锋
*/
#include “msp430.h“
//#include “HAL_Buttons.h“
#include “Dogs102x6.h“
#include
// Macros
#ifndef abs
# define abs(n) (((n) < 0) ? -(n) : (n))
#endif
// For all commands CD signal must = 0
#define SET_COLUMN_ADDRESS_MSB 0x10 //Set SRAM col. addr. before write last 4 bits =
// ca4-ca7
#define SET_COLUMN_ADDRESS_LSB 0x00 //Set SRAM col. addr. before write last 4 bits =
// ca0-ca3
#define SET_POWER_CONTROL 0x2F //Set Power control - booster regulator and follower
// on
#define SET_SCROLL_LINE 0x40 //Scroll image up by SL rows (SL = last 5 bits)
// range:0-63
#define SET_PAGE_ADDRESS 0xB0 //Set SRAM page addr (pa = last 4 bits) range:0-8
#define SET_VLCD_RESISTOR_RATIO 0x27 //Set internal resistor ratio Rb/Ra to adjust contrast
#define SET_ELECTRONIC_VOLUME_MSB 0x81 //Set Electronic Volume “PM“ to adjust contrast
#define SET_ELECTRONIC_VOLUME_LSB 0x0F //Set Electronic Volume “PM“ to adjust contrast (PM =
// last 5 bits)
#define SET_ALL_PIXEL_ON 0xA4 //Disable all pixel on (last bit 1 to turn on all pixels
// - does not affect memory)
#define SET_INVERSE_DISPLAY 0xA6 //Inverse display off (last bit 1 to invert display -
// does not affect memory)
#define SET_DISPLAY_ENABLE 0xAF //Enable display (exit sleep mode & restore power)
#define SET_SEG_DIRECTION 0xA1 //Mirror SEG (column) mapping (set bit0 to mirror
// display)
#define SET_COM_DIRECTION 0xC8 //Mirror COM (row) mapping (set bit3 to mirror display)
#define SYSTEM_RESET 0xE2 //Reset the system. Control regs reset memory not
// affected
#define NOP 0xE3 //No operation
#define SET_LCD_BIAS_RATIO 0xA2 //Set voltage bias ratio (BR = bit0)
#define SET_CURSOR_UPDATE_MODE 0xE0 //Column address will increment with write operation
// (but no wrap around)
#define RESET_CURSOR_UPDATE_MODE 0xEE //Return cursor to column address from before cursor
// update mode was set
#define SET_ADV_PROGRAM_CONTROL0_MSB 0xFA //Set temp. compensation curve to -0.11%/C
#define SET_ADV_PROGRAM_CONTROL0_LSB 0x90
// Pins from MSP430 connected to LCD
#define CD BIT6
#define CS BIT4
#define RST BIT7
#define BACKLT BIT6
#define SPI_SIMO BIT1
#de
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 42305 2013-07-16 16:09 msp430f5529低频频率计\Dogs102x6.c
文件 2537 2013-07-16 16:11 msp430f5529低频频率计\Dogs102x6.h
文件 1762 2013-07-18 14:20 msp430f5529低频频率计\main.c
目录 0 2013-07-22 15:43 msp430f5529低频频率计
----------- --------- ---------- ----- ----
46604 4
- 上一篇:电子诗人,全自动写诗
- 下一篇:雷达 声呐中收发合置换能器使用到的收发转换电路
相关资源
- DAC0832波形发生器幅值及频率都精确可
- 数字频率合成dds正弦波基于FPGA的DDS产
- SG3525频率PWM控制均可调模块
- fpga实现频率测量
- 51单片机频率计(很简单)
- 一个适用的虚拟声卡频率计
- 脉冲频率对脉冲激光重熔Zr55Cu30Al10N
- 锁相环PLL偏离整数通道的频率点杂散
- 的频率依赖性
- 分布式管理控制式计热表
- 短时傅立叶变换与Wigner-Ville分布联合
- 电源设计小贴士 8:通过改变电源频率
- 光纤布拉格光栅应变传感在振动状态
- 基于Simulation的涡旋压缩机支架体动态
- 压路机橡胶减振系统动态参数
- MSP430控制AD9850产生频率可调的方波及
- GW150914的频率依赖性违反Shapiro延迟的
- 论文研究 - 婴儿市场的交易频率异常
- 2.4G直接下变频接收机射频前端的设计
- 硬件课程设计-频率发生器
- 请2020年9月版最新频率2020年3月航空管
- 请2020年9月频率表2019年7月航空管制频
- 基于FPGA的双通道幅度相位频率可调节
- 基于STM32的信号频率测量
- MSP430F5529移植modbus
- stm32输出频率幅值可调SPWM
- 通过STM32F103单片机高级定时器TIM8同时
- 通过STM32F103单片机通用定时器TIM2,同
- STM32f103zet6脉冲周期检测间接的频率
- MSP430F5529 例程源码
评论
共有 条评论