Home     Contact     Forum     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Time for Science     RSS     Terms of services     Privacy policy  
   
 Home     Forum     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Time for Science   

Author Topic: PIC 16F628A  (Read 3936 times)

0 Members and 1 Guest are viewing this topic.

Rsamurai

  • Guest
PIC 16F628A
« on: February 18, 2011, 11:44:17 AM »
Hi all, i started having some classes about PIC, but my teacher Su..s.. he just dont know how to explain stuff, i tried hard and i did 5 of the 10 projects he ask me to do.

Well, i am asking for help because here in portugal i cant find any.
 well project i was trying to start is a program that read the position memory 40H (with a BCD number on the high nibble) and the 7 segments code is shown is on the PORTA (excluding RA5).

i hope you understand my english, and sorry if its bad written...
« Last Edit: February 18, 2011, 11:47:34 AM by Rsamurai »

kam

  • Administrator
  • Hero Member
  • *****
  • Posts: 1849
Re: PIC 16F628A
« Reply #1 on: February 18, 2011, 12:04:19 PM »
in position 0x40 there is an 8 bit number, ion which the 4 MSB bits have a 4-bit nuber. You want to read this number and then do what?

For start, to read this number, you only need to call movf 0x40,w This loads the number in W register. Then?

Rsamurai

  • Guest
Re: PIC 16F628A
« Reply #2 on: February 19, 2011, 15:30:20 PM »
well, ill try to explain what i think it is, because im not sure i understood what teacher asked...
i think that he wants that the 0x40 is shown on PORTA in bcd 7 segments code.

kam

  • Administrator
  • Hero Member
  • *****
  • Posts: 1849
Re: PIC 16F628A
« Reply #3 on: February 21, 2011, 11:01:24 AM »
MOVLW 0X40
MOVWF PORTA

this will get 8 bits from 0x40 and send them to portA.