AS393x_FW_Sources_1.0.2.zip源码

上传者: qianww5 | 上传时间: 2022-12-14 11:02:30 | 文件大小: 1.71MB | 文件类型: ZIP
PIC单片机控制AS3933接收和发送
IRQ_COUNT = 0;

// all I/O digital
AD1PCFG = 0xFFFF;

// set as output
TRISA = ~0x001C;
TRISB = ~0xE01F;

// turn on internal pull ups for switch
BUTTON_INTERNAL_PULL_UP = 1;
EXT_INT_VBUS_INTERNAL_PULL_UP = 0;

// set up spi interface
/* route SDI1 to pin RP5 (RA0) */
RPINR20bits.SDI1R = 5;
/* route pin RP4 (RB4) to SDO1 */
RPOR2bits.RP4R = 7;
/* route pin RP3 (RB3) to SCK1 */
RPOR1bits.RP3R = 8;
// /* route pin RP2 (RB2) to SS1 */
// RPOR1bits.RP2R = 9;

// enable external interrupt for wake pin
/* route INT1 to pin RP8 () */
RPINR0bits.INT1R = 8;
INTCON2bits.INT1EP = 0; // on positive edge
IPC5bits.INT1IP = 3; // middle priority
IFS1bits.INT1IF = 0; // clear pending interrupts
IEC1bits.INT1IE = 1; // enable interrupt


// enable capture for frequency measurement (CL_DAT, 32 kHz oscillator)
/* route IC1 to pin RP6 (RA1) */
RPINR7bits.IC1R = 6;
// IC1 gets set up every time we need it
//IPC0bits.IC1IP = 4; // middle priority
//IEC0bits.IC1IE = 1; // enable interrupt


// enable capture for frequency measurement (DAT, LFxP on LCO (125 kHz))
/* route IC2 to pin RP7 (RB7) */
RPINR7bits.IC2R = 7;

文件下载

资源详情

[{"title":"( 162 个子文件 1.71MB ) AS393x_FW_Sources_1.0.2.zip源码","children":[{"title":"lcd_font_5x7_ASCII.c <span style='color:#111;'> 29.43KB </span>","children":null,"spread":false},{"title":"usb_device.c <span style='color:#111;'> 92.61KB </span>","children":null,"spread":false},{"title":"lcd.c <span style='color:#111;'> 5.36KB </span>","children":null,"spread":false},{"title":"ams_usb.c <span style='color:#111;'> 2.85KB </span>","children":null,"spread":false},{"title":"system_clock.c <span style='color:#111;'> 7.86KB </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明