The 16 registers of TWIHS0 (Two-wire Interface High Speed), from 0x40018000, with their reset value and every field. The PIC32CZ5125CA70144 has 2990 registers in 68 peripherals, one page each.
TWIHS0 Two-wire Interface High Speed
TWIHS_CRControl Register
Address
0x40018000
Reset
0x00000000
Access
write only
Size
32-bit
22 fields
Field
Bits
What it does
FIFODIS
29
FIFO Disable
FIFOEN
28
FIFO Enable
LOCKCLR
26
Lock Clear
THRCLR
24
Transmit Holding Register Clear
ACMDIS
17
Alternative Command Mode Disable
ACMEN
16
Alternative Command Mode Enable
CLEAR
15
Bus CLEAR Command
PECRQ
14
PEC Request
PECDIS
13
Packet Error Checking Disable
PECEN
12
Packet Error Checking Enable
SMBDIS
11
SMBus Mode Disabled
SMBEN
10
SMBus Mode Enabled
HSDIS
9
TWIHS High-Speed Mode Disabled
HSEN
8
TWIHS High-Speed Mode Enabled
SWRST
7
Software Reset
QUICK
6
SMBus Quick Command
SVDIS
5
TWIHS Slave Mode Disabled
SVEN
4
TWIHS Slave Mode Enabled
MSDIS
3
TWIHS Master Mode Disabled
MSEN
2
TWIHS Master Mode Enabled
STOP
1
Send a STOP Condition
START
0
Send a START Condition
TWIHS_MMRMaster Mode Register
Address
0x40018004
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
Field
Bits
What it does
DADR
22:16
Device Address
MREAD
12
Master Read Direction
IADRSZ
9:8
Internal Device Address Size
0 No internal device address
1 One-byte internal device address
2 Two-byte internal device address
3 Three-byte internal device address
TWIHS_SMRSlave Mode Register
Address
0x40018008
Reset
0x00000000
Access
read/write
Size
32-bit
10 fields
Field
Bits
What it does
SADR3EN
30
Slave Address 3 Enable
SADR2EN
29
Slave Address 2 Enable
SADR1EN
28
Slave Address 1 Enable
SADR
22:16
Slave Address
MASK
14:8
Slave Address Mask
SCLWSDIS
6
Clock Wait State Disable
SMHH
3
SMBus Host Header
SMDA
2
SMBus Default Address
NACKEN
0
Slave Receiver Data Phase NACK enable
DATAMEN
31
Data Matching Enable
TWIHS_IADRInternal Address Register
Address
0x4001800C
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
Field
Bits
What it does
IADR
23:0
Internal Address
TWIHS_CWGRClock Waveform Generator Register
Address
0x40018010
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
Field
Bits
What it does
HOLD
29:24
TWD Hold Time Versus TWCK Falling
CKDIV
18:16
Clock Divider
CHDIV
15:8
Clock High Divider
CLDIV
7:0
Clock Low Divider
TWIHS_SRStatus Register
Address
0x40018020
Reset
0x00000000
Access
read only
Size
32-bit
19 fields
Field
Bits
What it does
SDA
25
SDA Line Value
SCL
24
SCL Line Value
SMBHHM
21
SMBus Host Header Address Match (cleared on read)
SMBDAM
20
SMBus Default Address Match (cleared on read)
PECERR
19
PEC Error (cleared on read)
TOUT
18
Timeout Error (cleared on read)
MCACK
16
Master Code Acknowledge (cleared on read)
EOSACC
11
End Of Slave Access (cleared on read)
SCLWS
10
Clock Wait State
ARBLST
9
Arbitration Lost (cleared on read)
NACK
8
Not Acknowledged (cleared on read)
UNRE
7
Underrun Error (cleared on read)
OVRE
6
Overrun Error (cleared on read)
GACC
5
General Call Access (cleared on read)
SVACC
4
Slave Access
SVREAD
3
Slave Read
TXRDY
2
Transmit Holding Register Ready (cleared by writing TWIHS_THR)
RXRDY
1
Receive Holding Register Ready (cleared by reading TWIHS_RHR)
TXCOMP
0
Transmission Completed (cleared by writing TWIHS_THR)
TWIHS_IERInterrupt Enable Register
Address
0x40018024
Reset
0x00000000
Access
write only
Size
32-bit
16 fields
Field
Bits
What it does
SMBHHM
21
SMBus Host Header Address Match Interrupt Enable
SMBDAM
20
SMBus Default Address Match Interrupt Enable
PECERR
19
PEC Error Interrupt Enable
TOUT
18
Timeout Error Interrupt Enable
MCACK
16
Master Code Acknowledge Interrupt Enable
EOSACC
11
End Of Slave Access Interrupt Enable
SCL_WS
10
Clock Wait State Interrupt Enable
ARBLST
9
Arbitration Lost Interrupt Enable
NACK
8
Not Acknowledge Interrupt Enable
UNRE
7
Underrun Error Interrupt Enable
OVRE
6
Overrun Error Interrupt Enable
GACC
5
General Call Access Interrupt Enable
SVACC
4
Slave Access Interrupt Enable
TXRDY
2
Transmit Holding Register Ready Interrupt Enable
RXRDY
1
Receive Holding Register Ready Interrupt Enable
TXCOMP
0
Transmission Completed Interrupt Enable
TWIHS_IDRInterrupt Disable Register
Address
0x40018028
Reset
0x00000000
Access
write only
Size
32-bit
16 fields
Field
Bits
What it does
SMBHHM
21
SMBus Host Header Address Match Interrupt Disable
SMBDAM
20
SMBus Default Address Match Interrupt Disable
PECERR
19
PEC Error Interrupt Disable
TOUT
18
Timeout Error Interrupt Disable
MCACK
16
Master Code Acknowledge Interrupt Disable
EOSACC
11
End Of Slave Access Interrupt Disable
SCL_WS
10
Clock Wait State Interrupt Disable
ARBLST
9
Arbitration Lost Interrupt Disable
NACK
8
Not Acknowledge Interrupt Disable
UNRE
7
Underrun Error Interrupt Disable
OVRE
6
Overrun Error Interrupt Disable
GACC
5
General Call Access Interrupt Disable
SVACC
4
Slave Access Interrupt Disable
TXRDY
2
Transmit Holding Register Ready Interrupt Disable
RXRDY
1
Receive Holding Register Ready Interrupt Disable
TXCOMP
0
Transmission Completed Interrupt Disable
TWIHS_IMRInterrupt Mask Register
Address
0x4001802C
Reset
0x00000000
Access
read only
Size
32-bit
16 fields
Field
Bits
What it does
SMBHHM
21
SMBus Host Header Address Match Interrupt Mask
SMBDAM
20
SMBus Default Address Match Interrupt Mask
PECERR
19
PEC Error Interrupt Mask
TOUT
18
Timeout Error Interrupt Mask
MCACK
16
Master Code Acknowledge Interrupt Mask
EOSACC
11
End Of Slave Access Interrupt Mask
SCL_WS
10
Clock Wait State Interrupt Mask
ARBLST
9
Arbitration Lost Interrupt Mask
NACK
8
Not Acknowledge Interrupt Mask
UNRE
7
Underrun Error Interrupt Mask
OVRE
6
Overrun Error Interrupt Mask
GACC
5
General Call Access Interrupt Mask
SVACC
4
Slave Access Interrupt Mask
TXRDY
2
Transmit Holding Register Ready Interrupt Mask
RXRDY
1
Receive Holding Register Ready Interrupt Mask
TXCOMP
0
Transmission Completed Interrupt Mask
TWIHS_RHRReceive Holding Register
Address
0x40018030
Reset
0x00000000
Access
read only
Size
32-bit
1 field
Field
Bits
What it does
RXDATA
7:0
Master or Slave Receive Holding Data
TWIHS_THRTransmit Holding Register
Address
0x40018034
Reset
0x00000000
Access
write only
Size
32-bit
1 field
Field
Bits
What it does
TXDATA
7:0
Master or Slave Transmit Holding Data
TWIHS_SMBTRSMBus Timing Register
Address
0x40018038
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
Field
Bits
What it does
TLOWM
23:16
Master Clock Stretch Maximum Cycles
TLOWS
15:8
Slave Clock Stretch Maximum Cycles
PRESC
3:0
SMBus Clock Prescaler
THMAX
31:24
Clock High Maximum Cycles
TWIHS_FILTRFilter Register
Address
0x40018044
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
Field
Bits
What it does
THRES
10:8
Digital Filter Threshold
PADFCFG
2
PAD Filter Config
PADFEN
1
PAD Filter Enable
FILT
0
RX Digital Filter
TWIHS_SWMRSleepWalking Matching Register
Address
0x4001804C
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
Field
Bits
What it does
SADR3
22:16
Slave Address 3
SADR2
14:8
Slave Address 2
SADR1
6:0
Slave Address 1
DATAM
31:24
Data Match
TWIHS_WPMRWrite Protection Mode Register
Address
0x400180E4
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
Field
Bits
What it does
WPEN
0
Write Protection Enable
WPKEY
31:8
Write Protection Key
5527369 Writing any other value in this field aborts the write operation of the WPEN bit.Always reads as 0