Hi everyone,
I'm trying to understand how void serial_begin(uint32_t divisor) function works (it is in the file serial1.c).
Is this function that one that is called when the common "Serial.begin(baudrate);" is invoked in the arduino IDE?
Then I walked through that ...|PORT_PCR_MUX(3); break; (line 120)
that should be equal to set PORTB_PCR16 |= 0x00000700;
I'm working with Teensy 3.2 and in the data sheet I found that to set those 3 bits is equal to use the alernative 7 in the pin mux control
Why is this choice (ALT7) done? I was in the signal multiplexing chapter (10)
but i didn't figure out why...
Can someone help me?
Best regards, Leo
I'm trying to understand how void serial_begin(uint32_t divisor) function works (it is in the file serial1.c).
Is this function that one that is called when the common "Serial.begin(baudrate);" is invoked in the arduino IDE?
Then I walked through that ...|PORT_PCR_MUX(3); break; (line 120)
that should be equal to set PORTB_PCR16 |= 0x00000700;
I'm working with Teensy 3.2 and in the data sheet I found that to set those 3 bits is equal to use the alernative 7 in the pin mux control
Why is this choice (ALT7) done? I was in the signal multiplexing chapter (10)
but i didn't figure out why...
Can someone help me?
Best regards, Leo