Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
hdq.h
Package: msp430.rar [view]
Upload User: xs588588
Upload Date: 2021-03-30
Package Size: 242k
Code Size: 1k
Category:
DSP program
Development Platform:
C/C++
- // Timer clock frequency (Hz)
- #define ClkFreq 2000000u
- //------------------------------------------------------------------------------
- // Define HDQ Protocol Related Timing Constants
- //------------------------------------------------------------------------------
- #define tBreak (190 * ClkFreq / 1000000) // HDQ Break Time (190us)
- #define tBR (40 * ClkFreq / 1000000) // HDQ Break Recovery Time (40us)
- #define tHW1 (40 * ClkFreq / 1000000) // Host sends 1 time (40us)
- #define tHW0 (123 * ClkFreq / 1000000) // Host sends 0 time (123us)
- #define tCYCH (230 * ClkFreq / 1000000) // Host bit window timing (230us)
- #define tDW1 (41 * ClkFreq / 1000000) // Slave sends 1 time (41us)
- #define tDW0 (113 * ClkFreq / 1000000) // Slave sends 0 time (113us)
- #define tTO (500 * ClkFreq / 1000000) // Time-Out Bit Receiption (500us)
- //-----------------------------------------------------
- void HDQSetup(void);
- void HDQWrite(unsigned char Addr, unsigned char Data);
- unsigned int HDQRead(unsigned char Addr);