Continue to Site

Welcome to EDAboard.com

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.

Recent content by Jiadong Yao

  1. J

    XILINX bus problem in schematic

    Thank you very much!!!!! Why am i always being so stupid...... I was thinking of using one mux...... Why not use 8!!! Problem solved!!!
  2. J

    XILINX bus problem in schematic

    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...
  3. J

    Pipeline with HaRvard architecture

    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...
  4. J

    how can i access to every bit of ADRESH

    I google the "read modify write" problem. Now i completely understand. Thank you very much.
  5. J

    how can i access to every bit of ADRESH

    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.
  6. J

    how can i access to every bit of ADRESH

    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.
  7. J

    how can i access to every bit of ADRESH

    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
  8. J

    how can i access to every bit of ADRESH

    Hi, i am using XC8 compiler.
  9. J

    how can i access to every bit of ADRESH

    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
  10. J

    PIC18f2550 SSPBUF problem in assembly

    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...
  11. J

    PIC18f2550 SSPBUF problem in assembly

    I changed your code into #include <xc.h> void initChip(); //void interrupt ISPread(); unsigned char ISPsend(unsigned char); void interrupt ISPread(){ if(PIR1bits.SSPIF == 1) PIR1bits.SSPIF = 0; while(!SSPSTATbits.BF); SSPSTATbits.BF =0; LATB = SSPBUF...
  12. J

    PIC18f2550 SPI problem

    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!
  13. J

    PIC18f2550 SSPBUF problem in assembly

    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.
  14. J

    PIC18f2550 SSPBUF problem in assembly

    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...
  15. J

    PIC18f2550 SSPBUF problem in assembly

    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...

Part and Inventory Search

Back
Top