Intel 87C196CB Configuring the can Controller, Programming the can Control Cancon Register

Models: 8XC196NT 87C196CB

1 155
Download 155 pages 42.65 Kb
Page 74
Image 74

CAN SERIAL COMMUNICATIONS CONTROLLER

7.4CONFIGURING THE CAN CONTROLLER

This section explains how to configure the CAN controller. Several registers combine to control the configuration: the CAN control register, the two bit timing registers, and the three mask reg- isters.

7.4.1Programming the CAN Control (CAN_CON) Register

The CAN control register (Figure 7-6) controls write access to the bit timing registers, enables and disables global interrupt sources (error, status change, and individual message object), and controls access to the CAN bus.

CAN_CON

Address:

1E00H

(87C196CB)

Reset State:

01H

Program the CAN control (CAN_CON) register to control write access to the bit timing registers, to enable and disable CAN interrupts, and to control access to the CAN bus.

87C196CB

7

CCE

 

 

 

 

0

EIE

SIE

IE

INIT

 

 

 

 

Bit

Bit

 

Function

Number

Mnemonic

 

 

 

 

 

 

7

Reserved; for compatibility with future devices, write zero to this bit.

 

 

 

6

CCE

Change Configuration Enable

 

 

This bit controls whether software can write to the bit timing registers.

 

 

0

= prohibit write access

 

 

1

= allow write access

 

 

 

5:4

Reserved; for compatibility with future devices, write zeros to these bits.

 

 

 

3

EIE

Error Interrupt Enable

 

 

This bit enables and disables the bus-off and warn interrupts.

 

 

0

= disable bus-off and warn interrupts

 

 

1

= enable bus-off and warn interrupts

 

 

 

2

SIE

Status-change Interrupt Enable

 

 

This bit enables and disables the successful reception (RXOK), successful

 

 

transmission (TXOK), and error code change (LEC2:0) interrupts.

 

 

0

= disable status-change interrupt

 

 

1

= enable status-change interrupt

 

 

When the SIE bit is set, the CAN controller generates a successful

 

 

reception (RXOK) interrupt request each time it receives a valid message,

 

 

even if no message object accepts it.

 

 

 

 

Figure 7-6. CAN Control (CAN_CON) Register

7-13

Page 74
Image 74
Intel 87C196CB Configuring the can Controller, Programming the can Control Cancon Register, Bit Function Number Mnemonic

8XC196NT, 87C196CB specifications

The Intel 87C196CB and 8XC196NT are microcontrollers from the C196 family, which was designed to meet the demands of embedded control technology. These microcontrollers are popular in various applications due to their robust architecture, extensive I/O capabilities, and specialized functionality, making them ideal for automotive, industrial, and communication systems.

The 87C196CB is distinguished by its 16-bit architecture, offering a balance of processing power and efficiency. It features a 16-bit data bus, which allows for fast data processing, and a 16-bit address bus, supporting up to 64KB of program memory. The microcontroller integrates on-chip memory, including 2KB of ROM and 128 bytes of RAM, which facilitates faster execution of programs and data handling.

One of the standout features of the 87C196CB is its versatility in I/O operations. It comes equipped with 32 general-purpose I/O lines that can be configured for various functions, including input, output, and interrupt handling. This flexibility enables developers to optimize the microcontroller for their specific application needs.

The 8XC196NT builds on the capabilities of its predecessor, offering advanced functionalities such as an enhanced instruction set and integrated peripherals. It includes additional features like timers, serial communication interfaces, and analog-to-digital converters, which expand its usability in complex embedded systems. The 8XC196NT supports multiple addressing modes, allowing for more efficient programming and memory management.

Both microcontrollers utilize innovative technologies that improve performance and power efficiency. The on-chip operating system support aids in real-time processing and multitasking, making them suitable for time-sensitive applications. Power management features are also incorporated, allowing these microcontrollers to operate in low-power modes, which is crucial for battery-operated devices.

The 87C196CB and 8XC196NT microcontrollers are characterized by their reliability and long service life, meeting the stringent demands of industrial applications. Their ability to perform tasks rapidly, combined with their diverse peripheral support, makes them popular choices among engineers and developers designing embedded systems. Overall, the Intel 87C196CB and 8XC196NT microcontrollers remain relevant in the rapidly evolving landscape of embedded technology, facilitating innovative solutions across various industries.