Hi Marcel,
To write to D0 to D7 please make sure you:
- Enable the clock using: CLOCK_EnableClock(kCLOCK_PortD);
- Set the pin as GPIO using: PORT_SetPinMux(PORTD, pinNum, kPORT_MuxAsGpio);
- Initialize the pins as output with:
gpio_pin_config_t config = {
kGPIO_DigitalOutput,
0,
};
GPIO_PinInit(GPIOD, pin, &config);
To write data your approach using PDOR is correct.
Best regards,
Felipe
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------