Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | 68HC12 | Problem reading port H

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

Problem reading port H - mithrandir017 - Mar 17 8:46:00 2006

I have a M68KIT912DP256 evaluation board for the MC9S12DP256
microcontroller. On the evaluation board there is a set of switches
that I would like to read and send to port B (which is connected to a
set of LED's). When viewing the memory using CodeWarrior, the value of
the PTIH register contains the value I expect, and everything goes as
desired. As soon as I now write a value to port B (this may be just a
constant), and  at the same time, more then 5 bits in PTIH are 'on'
(meaning 0), the whole process stops, while the command window in
CodeWarrior continues to mention a change in frequency. What is it
that I do wrong? My initial settings are:

    DDRB  = 0xff
    PORTB = 0xff
    PTIH  = 0x00  
    DDRH  = 0xff
    PTH   = 0xff
    RDRH  = 0xff
    PPSH  = 0xff
    PIEH  = 0x00
    PIFH  = 0x00
	


(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )