Thanx Ping and Martin for help,
@Ping Zhou thanx for document,
I am just Starting with the Freescale MCUs, in Past I worked on NXP LPC2148/29(ARM 7) MCUs, Keil i able to simulate these internal Pheripherals
I Suppose Keil Does Not Simulate these Freescale's MCUs (after seaching on net ).
I a week I will got my FRDM-KE02Z dev board .after that i will let you know that it is working or not.
I am also trying to work with IAR,it will compile it but when see the internal registers At First they change,but after that they does not.
#include"MKE02Z2.h"
int main()
{
GPIOA_PDDR |=GPIO_PDDR_PDD( 0xff00);
//GPIOA_PDOR |=GPIO_PDOR_PDO(0x0ffff);
GPIOA_PDDR =GPIO_PDDR_PDD( 0x00ff);
while(1)
{
//GPIOA_PSOR &= ~(GPIO_PSOR_PTSO(0x00ff));
GPIOA_PDOR =GPIO_PDOR_PDO(0x0ffff);
//GPIOA_PCOR=GPIO_PCOR_PTCO(0xffff);
GPIOA_PDOR =GPIO_PDOR_PDO(0x000000);
//GPIOA_PTOR |=GPIO_PTOR_PTTO(0x0ffff);
}
//return 0;
}
I just want to toggle any of my pins....
from code they go From 0x0000 to 0xffff but not comming again to 0x0000...
Any suggestions?????