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.
You need to use common cathode 7 Segments.
FYI,
At power up, all the ports are configured as input. Therefore,
will not do what you expect. (But here this is not the problem.). You need to set ports as output first then set them zero.
TRISA = 0; // All port A pins are configured as outputs...
In the simulation, you have wired the LCD and PIC in a wrong way.
wire
RA0 -> LCD.D4
RA1 -> LCD.D5
RA2 -> LCD.D6
RA3 -> LCD.D7
Also to be sure, ground LCD.D0 to LCD.D3 to ground.
What are you trying to do?
There is no any SPI interface in "74HC595" ?
Anyway in SPI communication what is this code for
SPI_PORT |= (1<<SPI_SCK);
_delay_us(10); // Hold pulse for 1 micro seconds
SPI_PORT &= ~(1<<SPI_SCK);
Remove this voltage divider form MCLR, just conect "MCLR" pin to Vdd (or use 1K resistor) as it needs a strong pull-up.
What is your power supply capacity? Can it handle your solonoid?
When solonoid get on/off it introduce noise into the power lines, do you have any noise filtering section for...
try this,
unsigned char keyin_char[6]; // you can only store 5 characters in this arrray. Last char is the null terminator for string.
char *string_pointer = &keyin_char[0];
void main()
{
// your code...
//after you taking all the input from the keypad and before using "string_pointer" you...
I think UART_OutUDec((unsigned short) (accelerationX*-1));
has no meaning. It is multiplied by -1 and again cast into "unsigned".
And other thing is
is "int". But it is casted into "short". I guess output of
is short.
#use delay(clock=40000000)
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
you need to add fuse for high speed crystal.
set port A,B,C,D as output before you use "Output_high_x()".
Are you talking about "fan-in" and "fan-out".
https://en.wikipedia.org/wiki/Fan-in
https://en.wikipedia.org/wiki/Fan-out
If so, https://www.edaboard.com/threads/102711/
ground EN2, IN3 & IN4 of L293.
- - - Updated - - -
If you have got a multimeter, connect it between supply and the circuit. undo you processor, remove your motor(but leave motor driver), LCD, keypad and power the circuit. write down the current measurement value.
Then connect only the keypad...
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.