Notes
![]() ![]() Notes - notes.io |
part1:Shift Operations
------
ISIS :
RA0:switch with VCC then 10K to gnd
RC0:res=330 with led to gnd
RD0 to RD7 :connect 8 wires to
LED-Bargraph(pin 9&10 out)then to
RESpack(pin 1 to gnd and rest connected)
--------
code :
#include <p18F4520.h>
#include <xc.h>
#pragma config OSC=INTIO67,WDT=OFF,MCLRE=OFF
#include <delays.h>
#define xmitpin PORTCbits.RC0
void main(void)
{
unsigned char x;
unsigned char conbyte=0x6A;
unsigned char buffer;
OSCCON=0x70;
ADCON1=0xF;
buffer=conbyte;
TRISC0 = 0;
TRISD=0;
TRISA0=1;
for(x=0;x<8;x++)
{
PORTD=buffer;
xmitpin=buffer & 0x01;
while(RA0==0);
buffer = buffer >> 1;
Delay10KTCYx(200);
}
while(1);
}
################
part2:Receive Serial (in) Bit 0 First
to bring the data serially one bit at a
time via the RB0 pin. Place the byte in
port D. The LSB (D0) should come in first.
ISIS:
RA0:switch with VCC then 10K to gnd
RB0:(led with res=220 with gnd)
parallel with (switch with VCC then 10k to gnd)
RD0 to RD7 :connected with
LED-Bargraph (pin9&10 out)
to RESPACk(pin 1 to gnd)
------
code:
#include "ee470.h"
void main(void)
{
unsigned char x;
unsigned char rcvbuffer;
OSCCON=0x70;
ADCON1=0xF;
TRISB0 = 1;
TRISD = 0;
TRISA0=1;
rcvbuffer=0;
for(x=0;x<8;x++)
{
PORTD=rcvbuffer;
Delay10KTCYx(200);
while(RA0==0);
rcvbuffer = rcvbuffer >> 1;
rcvbuffer |= (rcvpin & 0x01) << 7;
}
PORTD = rcvbuffer;
while(1);
}
#########
part 3:Both Transmit and
Receive Systems
ISIS: 2pic
pic1:{transmit}
RA0:switch to VCC then 10K
to gnd and with pic2(RA0).
RC0:res=330 to led to gnd
and to pic2(RB0)
RD0 to RD7 :connect 8 wires to
LED-Bargraph(pin 9&10 out)then to
RESpack(pin 1 to gnd and rest connected)
---
pic2:{recieve}
RA0:above
RB0:above
RD0 to RD7 :connect 8 wires to
LED-Bargraph(pin 9&10 out)then to
RESpack(pin 1 to gnd and rest connected)
------------
code:
pic1:code exp2 part1
pic2:code exp2 part2
####################
part4:7segment dispaly
common cathode
ISIS:
RA0:10K to VCC then switch to gnd
RA1:res=330 to led to gnd
RA2:res=330 to led to gnd
RB0 to RB7 :connected to 8 pins
in (7segment dispaly respictively)
and there is pin in 7 segment dispaly
below it connected to gnd.
-------
code:
#include "ee470.h"
void main()
{
OSCCON=0x70;
ADCON1=0xF;
TRISA=0b001;
TRISB=0;
b=0; PORTB=map[b];
while(1)
{
if (RA0==1)
{
b++;
PORTB=map[b];
if (b==5) RA1=1;
if (b==7) {RA1=0; RA2=1;}
if (b==0xe) {RA2=0; b=0; PORTB=map[b];}
Delay10KTCYx(100);
}
while (RA0==1) {};
if ((b > 0) & (RA0==0))
Delay10KTCYx(100);
}
}
--------------
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team