Welcome![Sign In][Sign Up]
Location:
Search - pic.h

Search list

[Other resourcetklxy18b20pic

Description: pic单片机18B20c语言程序#include<pic.h> #include<pic12f6x.h>-pic microcontroller 18B20c language program # include
Platform: | Size: 2006 | Author: th | Hits:

[Othercanf18xx8.h

Description: 、 先在microchip网站上找到00738.zip,这个包中有 can18xx8.h,can18xx8.c,将其复制到一个你要编写程度的子目录中,例如C:\testcan下,这个时候这个东东是不能直接用的。 2、 下载一个MPLAB 7.10,直接安装(要求直接下载) 3、 再下载一个PICC18 (HI-TECH的),要正版哦(支持正版,买不起的想其它办法吧) 4、在你的头文件上写上如下的样式: #include "stdio.h" #include "can18xx8.h" #include "pic18fxx8.h"//可能是“pic.h”不太好包含,因此常会报错,直接包含克服之 5、然后设置好PICC和MPLAB,如果MPLAB上没有PICC18,则到PICC的网上下一个安装软件,可以直接运行安装就有了。 6、按照工程的基本要求把你的源代码、添加上两个库(不加也可以) 然后就可以写如下代码了:下面是一个完整版,可以直接使用microchip的库函数,本程序只是仿真调试过,未在多个芯片通信过,仍在制作中。 #include "stdio.h" #include "can18xx8.h" #include "pic18fxx8.h" unsigned long NewMessage; BYTE NewMessageData[8]; BYTE MessageData[8]; BYTE NewMessageLen; enum CAN_RX_MSG_FLAGS NewMessageFlags=1; BYTE RxFilterMatch; void main() { //int a; //int b; CANInitialize(1, 5, 7, 6, 2, CAN_CONFIG_VALID_XTD_MSG); while(1) { // Application specific logic here // Check for CAN message if ( CANIsRxReady() ) { CANReceiveMessage(&NewMessage,NewMessageData,&NewMessageLen,&NewMessageFlags); if ( NewMessageFlags & CAN_RX_OVERFLOW ) { // Rx overflow occurred; handle it } if ( NewMessageFlags & CAN_RX_INVALID_MSG ) { // Invalid message received; handle it } if ( NewMessageFlags & CAN_RX_XTD_FRAME ) { // Extended Identifier received; handle it } else { // Standard Identifier received. } if ( NewMessageFlags & CAN_RX_RTR_FRAME ) { // RTR frame received } else { // Regular frame received. } // Extract receiver filter match, if it is to be used RxFilterMatch = NewMessageFlags & CAN_RX_FILTER_BITS; } // Process received message // Transmit a message due to previously received message or // due to application logic itself. if ( CANIsTxReady() ) { MessageData[0] = 0x01; CANSendMessage( 0x02,MessageData,1,CAN_TX_PRIORITY_0 &CAN_TX_STD_FRAME & CAN_TX_NO_RTR_FRAME); } // Other application specific logic } // Do this forever // End of program } 以上均是参考文档并进行了修正,由于中间总是报错,为了大家让CAN更容易,谢谢大家!
Platform: | Size: 10682 | Author: lovelzs2008@126.com | Hits:

[SCM20050221093239531502

Description: .首先打开需要下载的PIC18单片机程序(HEX文件)。 2.载入HEX后,才可以进行联机。联机后,在2秒内复位单片机。 3.联机成功后,会自动下载。如果下载中出现错误,将停止下载。 4.下载成功后,程序自动运行。 5.每次下载的步骤顺序是:载入文件->联机下载->复位单片机。 其它注意事项: 1.这个程序需要与PIC18配合使用,使用前请确认单片机中已经包含有BootLoader程序。 2.如果HEX文件格式或地址错误,会有提示。 3.联机失败后,有时需要复位单片机后重新联机。-. First of all, open the need to download the PIC18 Singlechip procedures (HEX file). 2. Loading HEX, we can not go on-line. Line after the reset Singlechip within two seconds. 3. Online success, it will automatically download. If the download an error, it would stop downloading. 4. Download is successful, the program to run automatically. 5. Per download is the sequence of steps: loading file-> online download-> Reset Singlechip. Other Notes: 1. This procedure used in conjunction with the PIC18, the use of pre-Make sure Singlechip already contains BootLoader procedures. 2. If the HEX file format or address error, there will be prompt. 3. Line after the failure, and sometimes need to reset after Singlechip online.
Platform: | Size: 246784 | Author: 小许 | Hits:

[SCMPIC+485

Description: 外国人编写的485通讯程序,和大家共享!-foreigners prepared by the 485 communications procedures, and share!
Platform: | Size: 146432 | Author: 小苗 | Hits:

[SCMtklxy18b20pic

Description: pic单片机18B20c语言程序#include<pic.h> #include<pic12f6x.h>-pic microcontroller 18B20c language program# include
Platform: | Size: 2048 | Author: th | Hits:

[SCMm_usart

Description: PIC单片机模拟串口 11.0592时钟 支持2400波特及以下稳定收发 一位起始,八位或九位数据,无校验,一位停止位 占用时钟1,和RB端口电平变化中断 HI-PICC编译平台 模拟收发管脚在m_usart.h中定义 PIC16F877A最小系统验证可用 -PIC single-chip analog clock 11.0592 serial support 2400 baud and below, to send and receive a stable start, eight or nine data, no parity, one stop bit occupied clock 1, and RB port change interrupt level HI- PICC compiler platform analog transceiver pin PIC16F877A in m_usart.h defined minimum system can be used to verify
Platform: | Size: 58368 | Author: lzz | Hits:

[Embeded-SCM Developh

Description: pic系列单片机头文件源文件(c18 开发环境)-pic
Platform: | Size: 563200 | Author: 吴林 | Hits:

[SCMpic_rtl8019as_rs232

Description: 单片机控制网络芯片进行通信 (内容包括rtl8019as的驱动程序,uip协议栈,电路原理图,tcpip.h文件,pic单片机通过8019as进行通信的完整论文)-SCM control network chip communication (including rtl8019as driver, uip stack, circuit schematics, tcpip.h file, pic microcontroller to communicate through 8019as the full paper)
Platform: | Size: 1160192 | Author: jasmy | Hits:

[Windows Developpic12c508luces

Description: Programing in C microchip pic 12f508 to serial ligth game
Platform: | Size: 16384 | Author: MHMD | Hits:

[source in ebookpic_c_Programing

Description: PIC c语言程序实例。含有I2C方式读写24C02EEPROM实例、PIC单片机12864汉字液晶模块显示图象实例、PIC单片机之步进电机控制移位距离实例、SPI方式读写93C46EEPROM实例、USART通信等9个完整程序设计。-PIC c language program examples. Examples of ways to read and write 24C02EEPROM with I2C, PIC Microcontroller 12864 character LCD module display image examples, PIC MCU shift from the example of stepping motor control, SPI mode read and write 93C46EEPROM instance, USART communications 9 full programming.
Platform: | Size: 14336 | Author: | Hits:

[assembly languagepic.h_part2

Description: Bibliothéque pic.h de source asm.h
Platform: | Size: 1024 | Author: nacer | Hits:

[assembly languagepic.h_part5

Description: Bibliothéque pic.h de source asm.h ,part4
Platform: | Size: 1024 | Author: nacer | Hits:

[assembly language089-PIC-PAL-TV-mikroc_project

Description: A PIC16F876 based, automatic 1.8 – 60 MHz SWR/WATTmeter
Platform: | Size: 30720 | Author: gor2ruiz | Hits:

[SCMAD-PIC16F72

Description: /这是一个两路交流信号的AD转换,然后和标准比较决定输出大于标准的那一路,默认输出A路 #include <pic.h> #include <math.h> #include <stdio.h> bank1 int re0[40] //定义存放A/D转换结果的数组,在bank0中 bank1 int re1[40] //定义存放A/D转换结果的数组,在bank1中-/ This is a two way exchange of signals AD conversion, and then compare the decision and the standard output that is larger than the standard way, the default output A Way# include <pic.h># Include <math.h># Include <stdio.h> bank1 int re0 [40] // definition of stored A/D conversion results in an array, in bank0 in bank1 int re1 [40] // definition of stored A/D conversion results in an array, in bank1 in ~ ~ ~ ~
Platform: | Size: 2048 | Author: mengchao | Hits:

[SCMasimpledigitalfrequencymeterBasedonPIC16F87A

Description: //本程序利用CCP1模块实现一个“简易数字频率计”的功能 #include <pic.h> #include <stdio.h> #include <math.h> const char table[11]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0XD8,0x80,0x90,0xFF}; //不带小数点的显示段码表 -//CCP1 module for use in this process a " simple digital frequency meter" function# include <pic.h># Include <stdio.h># Include <math.h> const char table [11] = (0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0XD8, 0x80, 0x90, 0xFF) // without a decimal point display section of code table ~ ~ ~
Platform: | Size: 3072 | Author: mengchao | Hits:

[Embeded-SCM DevelopEE2001-h-files

Description: cool header files for pic implementation include LCD times USART etc etc that can be directly used anywhere-cool header files for pic implementation include LCD times USART etc etc that can be directly used anywhere
Platform: | Size: 5120 | Author: arun@nusacm.org | Hits:

[SCMpic

Description: pic单片机头文件PIC.H详解, pic单片机头文件PIC.H详解- pic单片机头文件PIC.H详解
Platform: | Size: 3072 | Author: likuang | Hits:

[Other Embeded programmath.h

Description: Math utilities for 8bit PIC, available for 16/18 families
Platform: | Size: 4096 | Author: ogrozion | Hits:

[Software EngineeringLM020L(PIC)

Description: /RS,RW,E分别接RE0,RE1,RE2 D7-D0接RD口 #include <pic.h> /*头文件*/ #define LCD_RS RE0 /*定义引脚*/ #define LCD_RW RE1 #define LCD_E RE2 #define Busy RD7 void WR_COMM() void DISPLY() void CHECK_BF() void PLAY_LCD() /*函数声明*/ void DELAY() #define Data PORTD // 数据IO口 -/ RS, RW, E respectively, then RE0, RE1, RE2 D7-D0# include port access RD <pic.h> /* Header file* /# define LCD_RS RE0 /* define pin* /# define LCD_RW RE1# define LCD_E RE2# define Busy RD7 void WR_COMM () void DISPLY () void CHECK_BF () void PLAY_LCD () /* function declaration*/void DELAY () # define Data PORTD// data IO port
Platform: | Size: 1024 | Author: 皇甫 | Hits:

[ARM-PowerPC-ColdFire-MIPSpic

Description: PIC 开发资料准备 头文件<pic.h>-PIC development information to prepare the header file <pic.h>
Platform: | Size: 3072 | Author: 刘军 | Hits:
« 12 »

CodeBus www.codebus.net