欢迎访问ic37.com |
会员登录 免费注册
发布采购

PIC18F4580-I/PT 参数 Datasheet PDF下载

PIC18F4580-I/PT图片预览
型号: PIC18F4580-I/PT
PDF下载: 下载PDF文件 查看货源
内容描述: 28 /40/ 44引脚增强型闪存微控制器与ECAN技术, 10位A / D和纳瓦技术 [28/40/44-Pin Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology]
分类和应用: 闪存微控制器和处理器外围集成电路时钟
文件页数/大小: 490 页 / 8912 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18F4580-I/PT的Datasheet PDF文件第333页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第334页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第335页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第336页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第338页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第339页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第340页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第341页  
PIC18F2480/2580/4480/4580  
In Mode 1 and 2, there are an additional 10 acceptance  
The coding of the RXB0DBEN bit enables these three  
bits to be used similarly to the FILHIT bits and to distin-  
guish a hit on filter, RXF0 and RXF1, in either RXB0 or  
after a rollover into RXB1.  
filters, RXF6-RXF15, creating a total of 16 available  
filters. RXF15 can be used either as an acceptance  
filter or acceptance mask register. Each of these  
acceptance filters can be individually enabled or  
disabled by setting or clearing the RXFENn bit in the  
RXFCONn register. Any of these 16 acceptance filters  
can be dynamically associated with any of the receive  
buffers. Actual association is made by setting the  
appropriate bits in the RXFBCONn register. Each  
RXFBCONn register contains a nibble for each filter.  
This nibble can be used to associate a specific filter to  
any of available receive buffers. User firmware may  
associate more than one filter to any one specific  
receive buffer.  
111= Acceptance Filter 1 (RXF1)  
110= Acceptance Filter 0 (RXF0)  
001= Acceptance Filter 1 (RXF1)  
000= Acceptance Filter 0 (RXF0)  
If the RXB0DBEN bit is clear, there are six codes  
corresponding to the six filters. If the RXB0DBEN bit is  
set, there are six codes corresponding to the six filters,  
plus two additional codes corresponding to RXF0 and  
RXF1 filters, that rollover into RXB1.  
In Mode 1 and 2, each buffer control register contains  
5 bits of filter hit bits (FILHIT<4:0>). A binary value of ‘0’  
indicates a hit from RXF0 and 15 indicates RXF15.  
In addition to dynamic filter to buffer association, in  
Mode 1 and 2, each filter can also be dynamically asso-  
ciated to available Acceptance Mask registers. The  
FILn_m bits in the MSELn register can be used to link  
a specific acceptance filter to an acceptance mask reg-  
ister. As with filter to buffer association, one can also  
associate more than one mask to a specific acceptance  
filter.  
If more than one acceptance filter matches, the FILHIT  
bits will encode the binary value of the lowest num-  
bered filter that matched. In other words, if filter RXF2  
and filter RXF4 match, FILHIT will be loaded with the  
value for RXF2. This essentially prioritizes the  
acceptance filters with a lower number filter having  
higher priority. Messages are compared to filters in  
ascending order of filter number.  
When a filter matches and a message is loaded into the  
receive buffer, the filter number that enabled the mes-  
sage reception is loaded into the FILHIT bit(s). In  
Mode 0 for RXB1, the RXB1CON register contains the  
FILHIT<2:0> bits. They are coded as follows:  
The mask and filter registers can only be modified  
when the PIC18F2480/2580/4480/4580 devices are in  
Configuration mode.  
101= Acceptance Filter 5 (RXF5)  
100= Acceptance Filter 4 (RXF4)  
011= Acceptance Filter 3 (RXF3)  
010= Acceptance Filter 2 (RXF2)  
001= Acceptance Filter 1 (RXF1)  
000= Acceptance Filter 0 (RXF0)  
Note:  
000’ and ‘001’ can only occur if the  
RXB0DBEN bit is set in the RXB0CON  
register, allowing RXB0 messages to  
rollover into RXB1.  
FIGURE 24-3:  
MESSAGE ACCEPTANCE MASK AND FILTER OPERATION  
Acceptance Filter Register  
Acceptance Mask Register  
RXFn  
RXMn  
0
0
RXMn  
RxRqst  
1
RXFn  
1
RXFn  
RXMn  
n
n
Message Assembly Buffer  
Identifier  
© 2009 Microchip Technology Inc.  
DS39637D-page 337  
 复制成功!