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.
i am working with xilinx. I got the assignment to make a 16 bit binary counter and a loadable up&down counter. Now i have made it. And i have tested them. They all work well.
The last step is to combine two counters with multiplexer.
This is the requirement.
I have tries many ways to...
Pipeline with Harvard architecture
Hi, when i was taking the µp class, our professor said something that seems not correct.
He said the architecture has some problem. As you can see in the picture, below the register S2, he insisted that there should be one more register.
In other words...
I am using 18F device. but when i assign, i still use PORTB rather than LAT. it seems that everything works fine.
what is the problem?? i really dont know.
But i always write code in this way: e.g. PORTB = ADRESH;
Then the 8 bits will be shown on all RBs.
isn't it correct?
by the way, can i add you on facebook? if you don't mind, you can add me. my name is jiadong yao.
Hi, nice to see you.
Well actually i dont understand your code. could you explain me what "|" and ">>" mean?
why you use LAT rather than PORT? is there any difference?? i am always confused about these two.
thank you
Using the ADC
I want to display the result on RB0 to RB5 and RA2 to RA3.
How can i get every single bit in the ADRESH register then assign them to every port?
Thanks
Hi, Thank you, milan.
I've got the correct answer now.
First i should not use interrupt.
Second, before send data, i should read the SSPBUF once in order to automatically set the SSPSTAT BF to zero.
I post here my code.
And i remember that i will not use delay in the ISR anymore.
I dont know...
Hello, I am doing a lab but meet the problem about SPI
I post it in this forum and some people reply me. But I still cannot solve the problem.
Please look at this link.
https://www.edaboard.com/threads/326793/
I suppose that there must be error with my code.
Help!
well, i have to say i am not clear about your code. I don't understand. Sorry for that.
But your sentences make sense. I figure out that you understand what i am doing.
I also try to write the code in C. But the result is still not what i expect.
No. there is only one pic.
That's why i am confusing
- - - Updated - - -
ISR = interrupt service routine if i understand correctly.
In the code, ISPread is the interrupt routine.
- - - Updated - - -
I google your terminology and find MISO and MOSI are data input and data output.
In...
The requirement is
1. make a counter
2.Configure your PIC as a Master SPI.
3. Transmit the counter values via the SPI Master. Connect SDO directly to SDI of the same board. Check what happens.
4. Display the received 8-bit result on 8 LED’s. Contrary to what was done in the previous exercise...
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.