PIC16F876

所属分类:其他嵌入式/单片机内容
开发工具:Visual Basic
文件大小:57KB
下载次数:31
上传日期:2010-03-08 11:06:24
上 传 者tuanxxx
说明:  the pic controller in energy meter

文件列表:
PIC 16F876\PicSource V1_0.ZIP (23900, 2002-06-02)
PIC 16F876\pic_spi.zip (5417, 2002-04-22)
PIC 16F876\pic_spi\sa9904.c (2676, 2001-11-21)
PIC 16F876\pic_spi\mtb.h (1843, 2001-11-21)
PIC 16F876\pic_spi\mtb.c (7520, 2001-11-21)
PIC 16F876\pic_spi\sa9904.c_cbf (169, 2010-02-04)
PIC 16F876\PicSource V1_0\segments.h (1529, 2002-05-30)
PIC 16F876\PicSource V1_0\9x04_mtr.h (5327, 2002-05-30)
PIC 16F876\PicSource V1_0\9X04_MTR.HEX (22903, 2002-05-30)
PIC 16F876\PicSource V1_0\9x04_mtr.pjt (7172, 2002-05-30)
PIC 16F876\PicSource V1_0\at93c46.c (3234, 2002-03-13)
PIC 16F876\PicSource V1_0\debug.h (383, 2002-03-13)
PIC 16F876\PicSource V1_0\DELAY.C (393, 2002-03-13)
PIC 16F876\PicSource V1_0\DELAY.H (1325, 2002-03-13)
PIC 16F876\PicSource V1_0\df_utils.c (623, 2002-03-13)
PIC 16F876\PicSource V1_0\ee_addrs.h (1054, 2002-03-13)
PIC 16F876\PicSource V1_0\lcd.c (2404, 2002-05-30)
PIC 16F876\PicSource V1_0\prompts.c (1811, 2002-03-13)
PIC 16F876\PicSource V1_0\sa8807.c (682, 2002-03-13)
PIC 16F876\PicSource V1_0\9x04_mtr.c (13194, 2002-05-30)
PIC 16F876\pic_spi (0, 2010-01-18)
PIC 16F876\PicSource V1_0 (0, 2010-01-18)
PIC 16F876 (0, 2010-01-18)

V1.0 ==== NB: This is the default code downloaded to the evm's micro board. Architecture: Time-slicing is used to: read the fast changing registers (ea 10ms) read slow changing registers and implement User interface (ea second) SPI: This version uses bit-banging SPI, i.e. 3 port pins under direct software control creates SPI_Clock, MOSI and reads MISO. User Interface: Enter Key: toggles kWh and kVAr display Down Key: Displays (voltage & frequency)/phase Each press shows the next phase's data. Miscellaneous: 1. This code was created using Hi-Tech PIC C V7.86PL4, the demo version on their www site is sufficient for experimentation. 2. Since bit-banging SPI is used code should be portable to other micros. 3. The jumper on the board is used to control which rate LED output is connected to the opto-coupler. Jumper on board's outside edge == active Jumper on board's center pins == re-active Jumper on board's inside edge == not used 4. The pulse width of the rate LEDs/opto-output is 10 ms. PIC_SPI ======= Demonstration code that illustrates SPI access using the PIC's SPI-hardware. This code does basic power metering, reading the specified registers/comparing to the threshold and producing rate pulses. The register(s) to be read are set-up via #defines in the mtb.c file, see the module itself for details. The registers are read via a 10ms interrupt. The LCD or keys are not used in this code; it is left to the user to implement code around these resources based on the code provided in version 1.0. /df March 2002 d_fouche@sames.co.za

近期下载者

相关文件


收藏者