Intel Microcontroller, 80C196NU, 8XC196NP Programming the Capture/Compare Channels, Mode ROT ON/RT

Models: Microcontroller 80C196NU 8XC196NP

1 471
Download 471 pages 22.3 Kb
Page 215
Image 215

8XC196NP, 80C196NU USER’S MANUAL

10.5.3 Programming the Capture/Compare Channels

The EPAx_CON register controls the function of its assigned capture/compare channel. The reg- isters for EPA0 and EPA2 are identical. The registers for EPA1 and EPA3 have an additional bit, the remap bit (RM), which is used to enable and disable remapping for high-speed PWM gener- ation (see “Generating a High-speed PWM Output” on page 10-14). This added bit (bit 8) re- quires an additional byte, so EPA1_CON and EPA3_CON must be addressed as words, while the others can be addressed as bytes.

To program a compare event, write to EPAx_CON (Figure 10-10) to configure the EPA cap- ture/compare channel and then load the event time into EPAx_TIME. To program a capture event, you need only write to EPAx_CON. Table 10-5 shows the effects of various combinations of EPAx_CON bit settings.

Table 10-5. Example Control Register Settings and EPA Operations

Capture Mode

TB

CE

MODE

RE

ROT

ON/RT

 

Operation

7

6

5

 

4

3

2

1

0

 

 

 

 

X

0

0

 

0

0

0

 

None

X

0

0

 

1

0

X

X

 

Capture on falling edges

X

0

1

 

0

0

X

X

 

Capture on rising edges

X

0

1

 

1

0

X

X

 

Capture on both edges

X

0

X

 

1

0

1

X

 

Reset opposite timer

X

0

1

 

X

0

1

X

 

Reset opposite timer

 

 

 

 

 

 

 

 

Compare Mode

 

 

 

 

 

 

 

 

 

TB

CE

MODE

RE

ROT

ON/RT

 

Operation

7

6

5

 

4

3

2

1

0

 

 

 

 

 

X

1

0

 

0

X

0

0

 

None

X

1

0

 

1

X

0

X

X

 

Clear output pin

X

1

1

 

0

X

0

X

X

 

Set output pin

X

1

1

 

1

X

0

X

X

 

Toggle output pin

X

1

X

 

X

X

0

0

1

 

Reset same timer

X

1

X

 

X

X

0

1

1

 

Reset opposite timer

NOTES: — = bit is not used

X = bit may be used, but has no effect on the described operation. These bits cause other oper- ations to occur.

10-18

Page 215
Image 215
Intel Microcontroller manual Programming the Capture/Compare Channels, Example Control Register Settings and EPA Operations

Microcontroller, 80C196NU, 8XC196NP specifications

The Intel 8XC196NP and 80C196NU microcontrollers are part of Intel's renowned 16-bit microcontroller series that gained popularity in the 1980s and 1990s for embedded systems applications. Designed for a variety of applications, these microcontrollers are characterized by their robust performance, versatility, and industry-standard architecture.

The 8XC196NP features an enhanced instruction set with over 100 instructions, allowing for efficient code execution. It operates at clock speeds up to 16 MHz, which contributes to improved performance in time-sensitive applications. The microcontroller is equipped with a 16-bit data bus, enabling more efficient data handling compared to its 8-bit predecessors, thus accommodating complex algorithms and large data sets.

In terms of memory architecture, the 8XC196NP supports an addressable memory space of up to 64 KB of program memory and 64 KB of data memory. This configuration provides sufficient space for large applications while ensuring fast data access. The microcontroller includes integrated features such as timers, serial I/O capabilities, and interrupt processing, which enhance its functionality for real-time applications and control mechanisms.

The 80C196NU, on the other hand, is designed for lower power operation, making it suitable for battery-powered devices. This microcontroller maintains similar features to the 8XC196NP while offering advancements that support low-power consumption. The 80C196NU can also function in a range of temperature environments, making it adaptable for industrial applications.

Both the 8XC196NP and 80C196NU support external memory interfacing, allowing designers to expand the system's capability by connecting additional ROM and RAM. This flexibility makes them appealing for developing complex systems, such as motor controls, industrial automation, and consumer electronics.

Another standout feature of these microcontrollers is their built-in debugging capabilities. Intel provided hardware and software tools that enabled developers to test and troubleshoot their applications effectively, reducing the development time and increasing reliability.

Overall, the Intel 8XC196NP and 80C196NU microcontrollers stand out for their dependability, versatility, and performance, contributing significantly to the evolution of embedded system design. Their legacy continues to influence modern microcontroller technology, ensuring their relevance in a wide array of applications today.