lonely boy
Newbie level 6
Hi
I written these codes for at91sam7s256 in keil compiler but the simulation it's not like the program that i want ! I want pulse but it's don't like this
and i don't know where is my mistake,Can any one help me to find it?
Best regards
I written these codes for at91sam7s256 in keil compiler but the simulation it's not like the program that i want ! I want pulse but it's don't like this
and i don't know where is my mistake,Can any one help me to find it?
Best regards
Code:
#include <AT91SAM7S256.H>
int main (void) {
unsigned int n;
*AT91C_PIOA_PER= 0x80000 ; //set in PIO mode
*AT91C_PIOA_OER= 0x80000 ;// configure in output
while(1){
*AT91C_PIOA_SODR=0x80000 ;//PB.19 to be set
for (n=0 ; n< 8000000;n++);
*AT91C_PIOA_CODR=0x80000 ; // PB.19 to be clear
for (n=0 ; n< 8000000;n++);
}
}