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.
im trying to interface this 4 wire SPI based device AD7314 to a pic16f877a .
This IC sends 10 bit temperature data while the register (SSPBUF) where the received data is stored is 8 bit in size.
after the eighth bit of the 10 bits are received the BF flag (indicating SSPBUF is full) will go high...
Quote:
if(PORTA=0b00000000)
Quote:
else if (PORTA=0b00010000)
the first if statement is for checking if ra3 is a low and the second if else is to check if ra3 is a high ...
@colbhaidh : i tried connecting just 1k resistor to ra3 , 5v pin no use none of the led's glow none of the if cases work...
i am using pic16f877a the aim of this program is to make a simple sensor i have an LDR light resistance around 1k ohms and dark resistance around 600k ohms .... when i cover the ldr i want there to be a low in the inpt and one particular group of leds glow and when i leave it open to light i...
well i just left out c6 and c7 and went for two pins from other ports .... its like you have a total of 7 leds to take care of in ur 7 segment take 4-5 from port c and the rest from port d ... get ur respective codes for various numbers like for 3 it may be like this
PORTD = 0b10111000
PORTC =...
TASK : i am makin a wireless remote controlled boat using rf module ......
i choose to use dc motors to operate the boat ... i am using reed relays to operate the dc motors since its water environment ... i connect reed relay input terminals to the I/O pins of my pic 16877a dev board ...
1. when i declare a pin of a port as an input port say rb0 then in my code i write something like :
if input port is high (rb0 is high)
set rb1 as high
else set rb2 as high .
electrically what voltage should i apply to rb0 to make it a high i am using pic 16f877a
what is the electrical meaning...
dude im using PIC 16F877A ... FREQUENCY IS 16MHZ .... IM USING ACTUAL HARDWARE ..... U R CODE IS PERFECT SOMETHING WRONG WITH MY HARDWARE IF I PRESS THE OSCILLATOR AND THE TWO CAPACITORS THEN ITS WORKING BEAUTIFULLY .... ONCE I LEAVE IT SOME LOOSE CONNECTION I BOUGHT IT RECENTLY FULLY FABRICATED...
DUDE SOMETHING WRONG IN THE HARDWARE ITS NOT WORKING THE CONNECTIONS ARE CORRECT ..
THE LEDS ARE NOT GLOWING U MAY ALSO GIVE ME A C CODE FOR THE SAME .....
OBJECTIVE : GLOW LEDS CONNECTED TO PORTB ONE AFTER ANOTHER IN A DEFINITE PATTERN.
PROBLEM: ASSEMBLY CODE IS FULL OF WARNINGS , IS IT NECESARY TO TELL THE ASSEMBLER THE ADDRESS OF PORTB ??
NOTE: WILL THE CODE CHANGE FOR PIC18F48 AND PIC16877A
SOURCE CODE :
MYREG EQU 0X08;
ORG 0;
CLRF TRISB...
dude the problem is i set port rb2 as high i put the led on it and that gnd this led doesn glow ....
here is the pic of my dev board
please tell me if my connections were right picture attached
rb2 to led +VE , led _ve to resistor , resistor freee end to gnd .
i have purchased a locally made programmer and development board separately .
The programmer seems to be working as i uploaded the hex file generated from MPLAB IDE into the PIC using Micropro . it wrote " program sucessfully completed " then i read from the chip and checked it it was programmed...
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.