Home/Support / Knowledge Base / What are Dynamic C shadow registers and why do I need to use them?

What are Dynamic C shadow registers and why do I need to use them?

Shadow registers exist for many of the I/O registers.They are character variables defined in the BIOS. The naming convention for shadow registers is to append the word Shadow to the name of the register.

For example, the global control status register, GCSR, has a corresponding shadow register named GCSRShadow.

The purpose of the shadow registers is to allow the program to reference the last value programmed to the actual register. This is needed because a number of the registers are write only.

Last updated: Aug 23, 2017

Filed Under

Embedded

Recently Viewed Articles

No recently viewed articles
Contact a Digi expert and get started today! Contact Us