Hello Team,
I am new to this LPC microcontrollers. So, I have lpc11e36 microcontroller and trying to do hello world program which is i want to send the string through uart. I struggled lot. Is there any sample program for this particular microcontroller for uart.
Based on that uart dirver of lpc11xx series, I wrote one program. that is also not working.
I await for your response guys!!!.
Best Regards,
Kamalesh.C
Solved! Go to Solution.
Sorry, but without having such an MCU or a board, there is not much I can do myself.
However, what I would check:
The peripheral pins require appropriate initialisation, i.e. enabling the port & pin, and switch it to the correct peripheral mode (I2C in this case). In the LPCXpresso SDK, this is done in a file called pin_mux.c. Check those are correct for your MCU and your board, cross-referencing with the datasheet (port/pin assignment).
For test purposes, you could also initialize it to standard push/pull GPIO, and toggle it in your code. That should be visible on a scope.
Second, check the board schematics the pin is really usable for this purpose, and not blocked by other attached components.
And third, check schematics and the physical board that a pull-up resistor is present on both I2C pins. Without such a pull-up resistor, you cannot measure a signal on an open-drain output.
Hello Frank,
I tried the lpc-open examples of periph_i2c from this lpc11e6x series. I checked the i2c pin(SCL PIN) of lpc11e36 microcontroller by oscilloscope. It remains high state.
There is no clock frequency in this microcontroller.
Regards,
Kamalesh
Sorry, but without having such an MCU or a board, there is not much I can do myself.
However, what I would check:
The peripheral pins require appropriate initialisation, i.e. enabling the port & pin, and switch it to the correct peripheral mode (I2C in this case). In the LPCXpresso SDK, this is done in a file called pin_mux.c. Check those are correct for your MCU and your board, cross-referencing with the datasheet (port/pin assignment).
For test purposes, you could also initialize it to standard push/pull GPIO, and toggle it in your code. That should be visible on a scope.
Second, check the board schematics the pin is really usable for this purpose, and not blocked by other attached components.
And third, check schematics and the physical board that a pull-up resistor is present on both I2C pins. Without such a pull-up resistor, you cannot measure a signal on an open-drain output.