Periphmemwrite - Memory Write; Periphbitset - Set Selected Bits; Periphmemwrite Arguments; Periphbitset Arguments - Freescale Semiconductor DSP56800E User Manual

Hide thumbs Also See for DSP56800E:
Table of Contents

Advertisement

Core System Infrastructure
2.4.2.2

periphMemWrite - memory write

Call(s):
UWord16 periphMemWrite(UWord16 Data, UWord16 *pAddr);
Arguments:
Data
pAddr
Description: The periphMemWrite macro writes a 16-bit word (parameter Data) to the memory
addressed by parameter pAddr.
Example 2-19. periphMemWrite macro usage
periphMemWrite(0x1234, (UWord16 *) 0x0D60);
periphMemWrite(0xABCD, &ArchIO.TimerD.ch0.cmp1);
This code writes 0x1234 to the memory location at address 0x0D60 and value 0xABCD into the
timer/counter D0 Compare Register 1.
2.4.2.3

periphBitSet - set selected bits

Call(s):
void periphBitSet(UWord16 Mask, UWord16 *pAddr);
Arguments:
Mask
pAddr
Description: The periphBitSet macro sets the selected bits in a memory location addressed by
parameter pAddr.
Example 2-20. periphBitSet macro usage
periphBitSet(0xC000, &ArchIO.TimerD.ch0.scr);
This code sets bits 15 and 14 in the timer/counter D0 Status and Control Register (SCR).
2-14
Table 2-4. periphMemWrite arguments
in
The 16-bit data to write to the memory.
in
The memory address to which to write a 16-bit word.
Table 2-5. periphBitSet arguments
in
Bit mask.
in
The memory address.
Targeting 56F8xxx Platform
FREESCALE SEMICONDUCTOR

Advertisement

Table of Contents
loading

Table of Contents