The MCF52235 issue

"Sanjay Morab" <[email protected]>
Newsgroups gmane.comp.hardware.motorola.microcontrollers.coldfire
Message-ID <[email protected]>
Dear MARK

 

I am using The PST0-4 and DDATA0-4 (USED BY BDM) for driving the external
shift register. After downloading the to the flash and disabling the JTAG
connection still it shows some frequency on PST0 and PST1 instead of the
pulses of Shift register. I had checked the shift register working on other
port pin it works fine. Below is the initialization used for shift register
(GPIO).

 

 

void InitReadLedContrl(void)

{

                        MCF_GPIO_PDDPAR = MCF_GPIO_PDDPAR

                                    |  MCF_GPIO_PDDPAR_PDD0_GPIO //Led Data

                                    |  MCF_GPIO_PDDPAR_PDD1_GPIO; // Led
Clock

                                    

                                    

                        MCF_GPIO_DDRDD =   MCF_GPIO_DDRDD

                                | MCF_GPIO_DDRDD_DDRDD0
// LedData PST0

                         | MCF_GPIO_DDRDD_DDRDD1;
// LeaClock PST1

                        

                                    

                                    

                        MCF_GPIO_PTDPAR = MCF_GPIO_PTDPAR

                        | MCF_GPIO_PTDPAR_PWM5_GPIO                 // OE1

                        | MCF_GPIO_PTDPAR_PWM7_GPIO ;   // OE2

    

        

                        MCF_GPIO_DDRTD = MCF_GPIO_DDRTD

                        | MCF_GPIO_DDRTD_DDRTD3                         //
Oe2

                        | MCF_GPIO_DDRTD_DDRTD2;
// Oe1

        

                        

                        MCF_GPIO_PASPAR = MCF_GPIO_PASPAR

                                    | MCF_GPIO_PASPAR_SYNCA_GPIO    //
Strobe 1

                                    | MCF_GPIO_PASPAR_SYNCB_GPIO;   //
Strobe 2

                                    

                        MCF_GPIO_DDRAS = MCF_GPIO_DDRAS

                                    | MCF_GPIO_DDRAS_DDRAS2
// Strobe 2

                                    | MCF_GPIO_DDRAS_DDRAS3;
// Strobe 1

                            

                                    // All Outputs off

                                    

                                    MCF_GPIO_PORTDD |= 0x3;
// Led clk/dta

                                    MCF_GPIO_PORTTD |= 0x0c;
//  OE

                                    MCF_GPIO_PORTAS |= 0x0c;
// Strobe

//                                  ReaderLedStatus = 0;

                        

}

 

Is there any thing else to be done for disabling the PST0

 

Regards

Sanjay Morab
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.