View previous topic :: View next topic |
Author |
Message |
artapon
Joined: 05 Dec 2012 Posts: 5 Location: Turkey
|
i like the pic using 74hc164 HELP ME! |
Posted: Wed Dec 05, 2012 4:24 am |
|
|
Don't do it. You can help me. I recommend that in the circuit having a description of each of the following to me I have to make can help. I can only read and output module provides data from i want to transfer to. I don't need very urgent Please help.
Wherever you are happy to help you also in CCS c-language i am pleased.
image-1
image-2
I want to make circuits CIRCUIT NUMBER 1 NUMBER 2. A KIND BUT I could not do the encoding. SPI SLAVE YOU NEED ME. I wonder could you help me in this regard.
SERIAL DATA OUTPUT MODULE TO WHOM Each keystroke.
In short I WANT TO USE AS PIC 74HC164.
EXAM 74HC164 INPUT DATA AND PIC DISPLAY OUTPUT DATA:
00000000 = 0
10000000 = 1
01000000 = 2
11000000 = 3
00100000 = 4
10100000 = 5
01100000 = 6
11100000 = 7
00010000 = 8
100100000 = 9
01010000 = 10
ACCORDING TO THE NUMBER OF CODES DISPLAY I would like to see the output of the PIC. |
|
![](templates/subSilver/images/spacer.gif) |
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
|
Posted: Wed Dec 05, 2012 6:35 am |
|
|
You have not told us what MODUL is.
Start by getting your PIC to flash an LED.
There is loads of sample code on this forum and supplied with your compiler.
We are not going to do the work for you.
You have to help yourself.
When things don't work, show us what you have done, then someone here will guide you.
Mike |
|
![](templates/subSilver/images/spacer.gif) |
artapon
Joined: 05 Dec 2012 Posts: 5 Location: Turkey
|
|
Posted: Wed Dec 05, 2012 7:46 am |
|
|
Mike Walne wrote: | You have not told us what MODUL is.
Start by getting your PIC to flash an LED.
There is loads of sample code on this forum and supplied with your compiler.
We are not going to do the work for you.
You have to help yourself.
When things don't work, show us what you have done, then someone here will guide you.
Mike |
I already do not want all the code.
I want to only part of its code modules to process the information.
It does not matter what is on module.
74hc164 because the module to send information when trying to 74hc164.
in short, I would like to make the PIC16F628A with the 74hc164.
Please please please help me |
|
![](templates/subSilver/images/spacer.gif) |
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
|
Posted: Wed Dec 05, 2012 8:09 am |
|
|
Quote: | It does not matter what is on module. | Of course it matters.
I/we need to know what signals to process.
If we do the coding, you will learn nothing.
This is a help forum, not a do it for you one.
Like I said before:-
Learn to code for yourself.
Start with a 1Hz LED flasher.
(You will then know that your PIC is working).
Make a stab at driving the 74164.
If (when) it does not work, ask for help.
Quote: | in short, I would like to make the PIC16F628A with the 74hc164. | Yes I can see that.
I'm trying to help you work it out for yourself.
Mike |
|
![](templates/subSilver/images/spacer.gif) |
artapon
Joined: 05 Dec 2012 Posts: 5 Location: Turkey
|
|
Posted: Wed Dec 05, 2012 8:24 am |
|
|
Mike Walne wrote: | Quote: | It does not matter what is on module. | Of course it matters.
I/we need to know what signals to process.
If we do the coding, you will learn nothing.
This is a help forum, not a do it for you one.
Like I said before:-
Learn to code for yourself.
Start with a 1Hz LED flasher.
(You will then know that your PIC is working).
Make a stab at driving the 74164.
If (when) it does not work, ask for help.
Quote: | in short, I would like to make the PIC16F628A with the 74hc164. | Yes I can see that.
I'm trying to help you work it out for yourself.
Mike |
how to read the data you want to help me, please encode. I "proton" I know. protons in ccs c in this business, but I can not get around easily. proton blowing shin command. I do not know, but ccs c. please help. I have to finish it today.
only 74hc164 's how you can read and encode input information from the pic enough. I'll take care of the rest. |
|
![](templates/subSilver/images/spacer.gif) |
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
|
Posted: Wed Dec 05, 2012 9:30 am |
|
|
You're not showing how you connect the PIC to the '164 etc.
In circuit 1:-
The module drives the '164.
The '164 drive the 7 segment display.
In circuit 2:-
The module drives the PIC.
The PIC drives the 7 segment display.
If you can do a 1Hz LED flasher, driving the display as shown should be easy.
Mike |
|
![](templates/subSilver/images/spacer.gif) |
artapon
Joined: 05 Dec 2012 Posts: 5 Location: Turkey
|
|
Posted: Wed Dec 05, 2012 10:06 am |
|
|
WHY THIS help me not so easy. I need it very urgent. Please help me. |
|
![](templates/subSilver/images/spacer.gif) |
ezflyr
Joined: 25 Oct 2010 Posts: 1019 Location: Tewksbury, MA
|
|
Posted: Wed Dec 05, 2012 11:20 am |
|
|
Hi,
Unfortunately, your English is hindering our ability to understand exactly
what you are trying to do. You appear to be using an automatic translator
which may be making this communication problem worse?
Are you trying to program the PIC to emulate a 74HC164 device? In other
words you want circuit #2 to function exactly like circuit #1, except using a
PIC instead of the logic device?
John
PS An impatient attitude, and the use of words like 'Urgent' are a red flag
that this is a school project, and that you've waited until the last minute to
do your work! Keep in mind that most of us here have jobs, and we do this
in our spare time! |
|
![](templates/subSilver/images/spacer.gif) |
artapon
Joined: 05 Dec 2012 Posts: 5 Location: Turkey
|
|
Posted: Wed Dec 05, 2012 1:54 pm |
|
|
Thanks all you.
I want to design spi slave mode.
please....
74hc164=pic16f628 |
|
![](templates/subSilver/images/spacer.gif) |
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
|
Posted: Wed Dec 05, 2012 3:01 pm |
|
|
It's now obvious, I did not understand at all.
Ezflyr has worked it out.
Your homework assignment is to make a PIC16F628A behave partially like a 74hc164.
Look at the '164 data sheet, it shows what the device does.
You've even got a picture of the sequence.
So, pseudo code for main loop goes like this:-
Code: |
{
Read port A
If PIN_A7 is high, do nothing, start again.
If PIN_A7 is low, shift port B data and copy PIN_A6 to PIN_B0
Loop here 'til PIN_A7 is high.
Back to main loop start.
}
|
Mike |
|
![](templates/subSilver/images/spacer.gif) |
|