3-52
DINK32 PowerPC Debugger User’s Manual
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA
GPIC
- Enable: enable (1) disable (0) counting
- Mode: timer (1) counter (0)
- Trigger: external (1) none (0)
- Mode and Trigger parameters optional
(left unchanged)
- If Trigger is given, Mode must also be given
gpic tmmsk [timer(0-7)]
- Print Timer Int Mask Info for all or specific timer
gpic tmmsk timer[0-7] mask[0|1]
- Enble/disable Timer interrupt
- Mask: enable (1) disable (0)
gpic mask|m code[0-4] mask[0-31]
gpic unmask|um code[0-4] mask[0-31]
- Mask/Unmask an interrupt
- Code: CPU Int Mask High Reg = 0
- CPU Int Mask Low Reg = 1
- PCI1 Int Mask High Reg = 2
- PCI1 Int Mask Low Reg = 3
- GPP Int Mask Reg = 4
- Mask/Unmask bit, must be one bit location 0-31
Examples:
"gpic" Command Example Uses from the DINK32>> prompt:
gpic - Display various GPIC status info
- Set ‘env VERBOSE=1’ for more
verbose printout
gpic init - Initialize the GPIC unit to default mode
gpic tmcnt - Display All Timer/Counter Count Values
gpic tmcnt 1 - Display Timer/Counter 1 Count Value
gpic tmcnt 1 FFFFFF
- Set Timer/Counter 1 Count
Value to 0xFFFFFF
gpic tmen 2 - Enable counting on Timer/Counter 2
Same as ‘gpic tmcon 2 1’
gpic tmdis 2 - Inhibit counting on Timer/Counter 2
Same as ‘gpic tmcon 2 0’
gpic tmcon - Display All Timer/Counter Config Info
gpic tmcon 1 - Display Timer/Counter 1 Config Info
gpic tmcon 1 1 - Enable Counting on Timer/Counter 1
gpic tmcon 1 0 - Disable Counting on Timer/Counter 1
gpic tmcon 1 1 1 - Set Timer/Counter 1 as a Timer
Enable Counting on Timer 1
gpic tmcon 1 1 0 - Set Timer/Counter 1 as a Counter
Enable Counting on Counter 1
gpic tmmsk - Display All Timer Mask Values
gpic tmmsk 1 1 - Unmask Timer 1 Interrupt
gpic tmmsk 1 0 - Mask Timer 1 Interrupt
gpic tmen 2 - Enable counting on Timer 2
gpic tmdis 2 - Inhibit counting on Timer 2
gpic mask 1 8 - Mask interrupts from Timer0_1 in the Main
Interrupt Mask Low register
F
Freescale Semiconductor, Inc.
n
.