

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


#include "derivative.h" void delay () { int i; for (i=0; i<1000000; i++) { asm ("nop"); } } int main ( void ) { SIM_SCGC5 |= SIM_SCGC5_PORTD_MASK; PORTD_PCR(5) = PORT_PCR_MUX(1) | PORT_PCR_DSE_MASK | PORT_PCR_PE_MASK | PORT_PCR_PS_MASK;
for (;;) { GPIOA_PTOR = 1<<5; delay(); } return 0; }