| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
PIC16F720-E/ML Datasheet(PDF) 151 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F720-E/ML Datasheet(HTML) 151 Page - Microchip Technology |
|
151 / 244 page ![]() 2010 Microchip Technology Inc. DS41430A-page 151 PIC16F/LF720/721 17.2.4 ADDRESSING Once the SSP module has been enabled, it waits for a Start condition to occur. Following the Start condition, the 8 bits are shifted into the SSPSR register. All incom- ing bits are sampled with the rising edge of the clock line (SCL). 17.2.4.1 7-bit Addressing In 7-bit Addressing mode (Figure 17-10), the value of register SSPSR<7:1> is compared to the value of reg- ister SSPADD<7:1>. The address is compared on the falling edge of the eighth clock (SCL) pulse. If the addresses match, and the BF and SSPOV bits are clear, the following events occur: • The SSPSR register value is loaded into the SSPBUF register. • The BF bit is set. •An ACK pulse is generated. • SSP Interrupt Flag bit, SSPIF of the PIR1 register, is set (interrupt is generated if enabled) on the falling edge of the ninth SCL pulse. 17.2.4.2 10-bit Addressing In 10-bit Address mode, two address bytes need to be received by the slave (Figure 17-11). The five Most Significant bits (MSbs) of the first address byte specify if it is a 10-bit address. The R/W bit of the SSPSTAT register must specify a write so the slave device will receive the second address byte. For a 10-bit address, the first byte would equal ‘1111 0 A9 A8 0’, where A9 and A8 are the two MSbs of the address. The sequence of events for 10-bit address is as follows for reception: 1. Load SSPADD register with high byte of address. 2. Receive first (high) byte of address (bits SSPIF, BF and UA of the SSPSTAT register are set). 3. Read the SSPBUF register (clears bit BF). 4. Clear the SSPIF flag bit. 5. Update the SSPADD register with second (low) byte of address (clears UA bit and releases the SCL line). 6. Receive low byte of address (bits SSPIF, BF and UA are set). 7. Update the SSPADD register with the high byte of address. If match releases SCL line, this will clear bit UA. 8. Read the SSPBUF register (clears bit BF). 9. Clear flag bit SSPIF. If data is requested by the master, once the slave has been addressed: 1. Receive repeated Start condition. 2. Receive repeat of high byte address with R/W = 1, indicating a read. 3. BF bit is set and the CKP bit is cleared, stopping SCL and indicating a read request. 4. SSPBUF is written, setting BF, with the data to send to the master device. 5. CKP is set in software, releasing the SCL line. 17.2.4.3 Address Masking The Address Masking register (SSPMSK) is only accessible while the SSPM bits of the SSPCON register are set to ‘1001’. In this register, the user can select which bits of a received address the hardware will compare when determining an address match. Any bit that is set to a zero in the SSPMSK register, the corresponding bit in the received address byte and SSPADD register are ignored when determining an address match. By default, the register is set to all ones, requiring a complete match of a 7-bit address or the lower eight bits of a 10-bit address. |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |