![Portwell PQ7-M102XL Series User Manual Download Page 24](http://html1.mh-extra.com/html/portwell/pq7-m102xl-series/pq7-m102xl-series_user-manual_1581807024.webp)
System Installation
PQ7-M102XL Series User Manual
3-5
Programming guide :
CR: Configuration Register.
LD: Logical Device of SIO. There are 12 LDs in W83627DHG SIO.
CR00~2F: Global Control Registers. (All LDs share these CRs )
CR07: LD selection.
CR30~FF: Each LD has its own CR30~FF.
There are two I/O ports as I/O access window for configuring WDT,
1) IO port 0x2E is H/W strapped and named as EFIR (Extended Function Index
Register, for identifying CR index number)
2) IO port 0x2F is H/W strapped and named as EFDR (Extended Function Data
Register, for accessing desired CR)
<< How to access W83627DHG Configuration Register >>
First, it needs to enter extended function mode.
Enter extended function mode for accessing W83627DHG configuration registers:
outportb (EFIR, 0x87);
outportb (EFIR, 0x87); // double IO write
Read Configuration Register CR_rx, and keep this byte to unsigned char al_char
outportb(EFIR, CR_rx ) ;
al_char = inportb(EFDR) ;
Write Configuration Register CR_wx with byte al_char1 ;
outportb (EFIR, CR_wx ) ;
outportb (EFDR, al_char1);
Exit extended mode after completion of configuration register access.
outportb(EFIR, 0xaa);