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 salamah99

  1. S

    division of 16-bit numbers in pic16f877a assembly

    The code I provided is a subtraction code, but the whole process i am doing is division through subtraction, so i loop and subtract with incrementing a counter until i get a smaller number in dividend than the divisor My problem is in the subtraction code, when i subtract 0x0005 from 0xFF00 ...
  2. S

    division of 16-bit numbers in pic16f877a assembly

    It's stuck because I am doing a division loop, which calls subtract each time, when dividend reaches 0xFF00 and divisor is 0x0005 , the dividend value becomes 0xFFFB, that means the borrow is not handled correctly in the subtraction, here an infinite loop occurs
  3. S

    division of 16-bit numbers in pic16f877a assembly

    This stuck in infinite loop (I tried it), which means the process is not dealing with borrow correctly,
  4. S

    division of 16-bit numbers in pic16f877a assembly

    Hi All, I got the following code to subtract 2-byte numbers in pic 16f877a assembly " SUB16 MACRO DST, SRC MOVF (SRC),W ; Get low byte of subtrahend SUBWF (DST),F ; Subtract DST(low) - SRC(low) MOVF (SRC)+1,W ; Now get high byte of...
  5. S

    [SOLVED] need to store ascii digits into 2 byte number

    Guys, I am setting the decimal digit into each variable, then I am trying to write code like follows: SPECIAL_COMBINE clrf SPECIAL_COMB_HIGH_BYTE clrf SPECIAL_COMB_LOW_BYTE movlw 0x27 movwf TEMP_HIGH_BYTE movlw 0x10 movwf TEMP_LOW_BYTE movf DIGIT5, 0 call...
  6. S

    [SOLVED] need to store ascii digits into 2 byte number

    I need to complete a task and task is to implement an assembly code pic16F877A I tried the approach you are talking about, but my code wasn't strong enough to be able to achieve my goal, it didn't convert the number in the right way, so i am looking for someone who can write a valid function
  7. S

    [SOLVED] need to store ascii digits into 2 byte number

    I am writing an assembly code, not C, and I can't use C so this is the real matter.
  8. S

    [SOLVED] need to store ascii digits into 2 byte number

    it's unsigned, I defined variable RESULT RES 2 to reserve 2 bytes actually I want to read 2 number (2 bytes each), and do calculations over them like addition and division, all of them unsigned
  9. S

    [SOLVED] need to store ascii digits into 2 byte number

    I have an example like : movlw D'1' movwf digit1 movlw D'2' movwf digit2 movlw D'3' movwf digit3 movlw D'4' movwf digit4 movlw D'5' movwf digit5 I want a function that converts these ascii digits to a decimal two bytes number which should be 12345, note that this is only an...

Part and Inventory Search

Back
Top