hi ,
we are working on msp430f149 and had the same problem. as the
ports and the clk out pins have the same external pin number,
configuring as port makes the "pin" out function inaccessable. for
example in 149, the pin 49 is used as one of the port 5 pins and as
the output pin for smclk. we had configured the pin as port and hence
were unable to get the toggling of the smclk at that pin. use the
PSEL register to configure the pin as port(defult) or special
function pin. the other problems with port 2 is also most probably to
do with psel. so just check psel every time u use its corresponding
port,
bye
Reply by stephen_fenstermaker●April 17, 20032003-04-17
I have a very simple assembly program which sets up aclk output on
one of the ports and port2 interrupts and no matter what I have
tried, I can't get C-Spy to show me the aclk pin toggling. Aclk is
working because I have TimerA hooked up to it and it is running fine.
Also, I set up port2 to have interrupts and the only way I can get
the interrupt to fire is to manually change the P2IFG flags which
then causes the correct action. If I use pin I/O files to change
port2 pins or change the pins manually, the P2IFG flags never get
set. Are these 2 limitations of the TI simulator within C-Spy? Have
people gotten C programs using interrupts to work?