Ritchie Thai
  • Male
  • Toronto, Ontario
  • Canada
Share on Facebook Share on Facebook MySpace
  • Blog Posts (7)
  • Discussions
  • Groups
  • Photos
  • Photo Albums
  • Videos

Ritchie Thai's Friends

  • narges balouchestani
  • Emma Redwood

Gifts Received

Gift

Ritchie Thai has not received any gifts yet

Give a Gift

 

Ritchie Thai's Page

Ritchie Thai's Blog

ADC Sample Code has a bug (it seems)

There seems to be a mistake, because the code did not work, and after my change, it did work.

 

MainLoop

    bsf        ADCON0,2        ;start conversion and wait for it to complete

    btfsc    ADCON0,2

    goto    $-2

 

goto $-2 is wrong, because it goes back 2 lines and starts the conversion all over again. You'll want to goto $-1 instead, to just test until the conversion is done.

 

However, I would reccommend this…

Continue

Posted on February 19, 2011 at 7:21pm

Tool: MPASM LCD String Writing Code Generator

http://dozydagger.com/misc/mpasm-lcd-writer.html

 

You know what I say to tables? Well, I don't say it, because I am not the type to publicly use such language, but once you get past the character limit it causes problems that can be tricky even if the solution is known.

 

Here's a work around that I'm using. "can" wasn't worth making a table for. A table would take 4 lines. If you include the code to…

Continue

Posted on February 1, 2011 at 1:30am

Removed Post

I have removed this post because it was based on misinformation. I have decided not to delete the post because I wish the comments to be preserved.

Posted on January 28, 2011 at 5:00am — 7 Comments

Tip: DT location in code matters.

If there is a certain length of code coming before the DT (define table) directive, then characters/entries in the DT past a certain point will fail to return a value. Instead, upon reaching that character, the program will restart from the beginning.

 

Remember, or realize, that DT is actually a short form for a long list of retlw instructions. That means that having a DT holding a long string counts as many instructions.

 

This does NOT appear to be an issue of…

Continue

Posted on January 26, 2011 at 5:30am — 4 Comments

Comment Wall (1 comment)

You need to be a member of Personal Mechatronics Lab to add comments!

Join Personal Mechatronics Lab

At 1:35pm on May 9, 2018, mrs abiola bawuah said…

Good Day,


How is everything with you, I picked interest on you after going through your short profile and deemed it necessary to write you immediately.I have something very vital to disclose to you, but I found it difficult to express myself here, since it's a public site.Could you please get back to me on this email(mabawuah11@gmail.com  ) for the full details,
Have a nice day

Thanks God bless.


Mrs Abiola.

 
 
 

© 2024   Created by PML.   Powered by

Badges  |  Report an Issue  |  Terms of Service