资源简介
该程序是基于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
- 上一篇:电子诗人,全自动写诗
- 下一篇:雷达 声呐中收发合置换能器使用到的收发转换电路
相关资源
- 8051汇编编写频率计程序 适合低频 四
- 产生频率变化的PWM波形
- msp430f5529闹钟程序
- STM32F103任意频率三角波+正弦波产生
- 基于msp430f5529的LED跑马灯
- msp430f5529高电平时间测量
- 51单片机测量方波频率proteus仿真
- STM32芯片72MHZ频率下全速跑LED流水灯(
- MSP430F5529LP例程红色开发板
- 频率计的设计
- AD9859频率预置 +显示
- 雷达接收分系统测试方法 动态范围、
- 峰值法模态参数识别
- 3525频率计算器
- TI的msp430f5529读取DS1302时钟芯片,可以
- 0.96寸OLED显示屏适配MSP430F5529
- MSP430F149 TB输出频率可调PWM波
- Vf控制保证输出电压频率恒定
- 1-100m数字频率计源程序
- 不同频率闪烁多个LED灯程序
- 基于FPGA的采用等精度测频原理的频率
- 基于FPGA的多进制数字频率调制(MFS
- 基于51单片机的简易频率计程序
- 采用TTL电路设计的数字频率计
- 基于FPGA数字频率计的实现
- TI官方开发板MSP430F5529LP硬件原理图
- 频率计用protues做的
- 利用51单片机来完成频率测量的程序
- fpga实现的简易频率计veilog
- STM32利用输入捕获模式测量频率
评论
共有 条评论