如何使用在函数中声明的atmega32在lcd中显示变量的值? [英] How do i display the value of the variable in a lcd using atmega32 that was declared in a function ?

查看:86
本文介绍了如何使用在函数中声明的atmega32在lcd中显示变量的值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的项目是使用atmega32微控制器识别电源被盗。 433 MHz射频发射器从固定在电源线上的功率传感器发送数据,接收的数据必须显示在与atmega32接口的液晶显示器中。我们已经将Lcd与控制器连接起来。我们还有发送器和接收器部分的单独编码。我们在收发器部分声明了一个变量(从线路获得功率),并且该变量的值必须在lcd中显示.Wen已经尝试了我们的最佳水平,但我们无法想出。请发送编码(嵌入式C语言)和相关详细信息。



谢谢。



我尝试过:



我们尝试过Lcd_puts(),itoa()以及缓冲概念

our project is to identify power theft using atmega32 microcontrollers . A 433 MHz rf transmitter sends the data from the power sensor that is fixed on the power line and the received data has to be displayed in the lcd that was interfaced with atmega32. We have interfaced the Lcd with the controller. we also have separate coding for transmitter and receiver section. we have declared a variable(to get the power from the lines) in the transceiver section and the value of that variable has to be displayed in the lcd.Wen have tried our level best but we were unable to come up with. Kindly send the coding(embedded C language) and relevant details.

Thank You.

What I have tried:

we have tried Lcd_puts(),itoa() and also buffers concepts

推荐答案

Quote:

我们尝试过Lcd_puts(),itoa()以及缓冲概念

we have tried Lcd_puts(),itoa() and also buffers concepts



信息不足。

您使用什么库(以及编程环境!)来访问LCD(您应该在附近有文档)?你能在显示器上输出一个常量字符串(例如Hi)吗?你是如何将 itoa Lcd_puts 结合起来的?您应该向我们提供更多详细信息以获得适当的帮助。

此外,您可能会在 atmega32 论坛上获得更好的帮助。


Not enough info.
What library (and what programming environment!) are you using for accessing the LCD (you should have its documentation at around)? Are you able to output a constant string on the display (e.g. "Hi")? How did you combine itoa with Lcd_puts? You should give us more details in order to get proper help.
Moreover you possibly might get better help on atmega32 forums.


这篇关于如何使用在函数中声明的atmega32在lcd中显示变量的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆