How to do hello world program

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to do hello world program

ソリューションへジャンプ
15,920件の閲覧回数
kamalesh
Contributor II

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

ラベル(2)
0 件の賞賛
返信
1 解決策
14,810件の閲覧回数
frank_m
Senior Contributor III

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.

元の投稿で解決策を見る

0 件の賞賛
返信
22 返答(返信)
645件の閲覧回数
kamalesh
Contributor II

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

0 件の賞賛
返信
14,811件の閲覧回数
frank_m
Senior Contributor III

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.

0 件の賞賛
返信