Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
U can include another .c file in ur main .c file. but u have to take care about the variables defined in ur .c files(have to define as extern).
Ex.
ur main file is main.c & the other file is lcd.c. then ur syntax will be
#include <main.h>
#include "lcd.h"
Dear gregmcc ,
What data is there in ur 1 byte.? Is it some information means any adc/dac or any other perriferal data/output or just ON-OFF Pulses.??
The good practice is to Transmit the data contineously, & on receiver side store it in some buffer & take whenever u want.
transmit...
The four wire Touch pad firstly works on SPI Protocol with the driver IC(if u r using). U can read the data from that IC say ADS7843 through spi engine of by bit bang method & can simulate the results either on ur display of on hiper terminal.
Mandar
Hello Dani,
It seems u r missing some basics. Any microcontroller code runs in a infinite while loop.
Plz try the below code.
void delay (unsigned long cnt);
void main()
{
unsigned char i;
P1M1 |= 0x20;
P1M2 &= 0xDF;
P2M1 = 0x00; // Pushpull
P2M2 = 0xff;
while(1)...
You r using Port 2, right???
your port 2 pins must be in PUSH PULL MODE OR QUASI BI DIRECTIONAL MODE.
What's the voltage u r getting on ur portpins when u want to glow the LED'S. There might be a problem in ur hardware also.
I use Flash Magic for loading the program in my LPC. Don't...
Hi Dani,
I do not understand what exactly u r trying to say.
But looking at ur code, ur port pin is not configured properly (P2M1 = 0;).
It should be in the following manner(by the combination of M1 & M2). Also refer the datasheet for the same. its quite...
Hi Bobi,
The problem is solved. Thanks for the reply. Actually in all the write command & write data instructions, the LCD BUSY STATUS must be checked. OR one may add a random delay. In my case, i checked the busy status of LCD as below:
while(1)
{
if(!(GLCD_ReadStatus() &...
Hi Everybody, I intend to use a 320 x 240 Monochrome display. the controller on the board is RAIO RA8835. I am using the attached file for initializing the same. If u look in my main.c file, I just call a function to display a text msg.
But I am not getting any results an display. Also during...
How to focus the beam, my asthetic design is in such a way that I can't use a cone for the sensors.
& about increasing the gain, if i increase it above 1000, it is creating problems.
My gain is of 1000. which is quite high.
All the observations/ debugging are done on oscilloscope only.
The returned echo from hard object is clearly seen on scope from long distance.
But when it comes to head, echo gets attenuated after say 40-45 cms from sensor.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.