RMW Read modify write


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: RMW Read modify write

    Code:
    glcd_dat	var PORTE	   ' LCD 8 bit data bus
    as this is 8bit data port with the TRIS set at $00 or $FF

    Code:
     glcd_tris 	var TRISE	   ' Data bus direction
    would PBP uses LAT port registers internally ?

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,631


    Did you find this post helpful? Yes | No

    Default Re: RMW Read modify write

    assuming you have lat registers on your pic chip , porte is not equal to late they are separate registers . check the memory map of your chip.
    pbp has no glcd native functions, whether your "glcd library" uses late is completely dependent on how the library was written .
    if you define your "data bus" as porte I would expect it will not use lat regs (that would probably require two defines , one for each direction)
    and lastly rmw has no impact at all when you are writing to the whole port

Similar Threads

  1. PLEASE HELP...read write issues
    By nomad77 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 17th March 2011, 14:39
  2. Write/Read DS1996
    By Bosse in forum Forum Requests
    Replies: 2
    Last Post: - 9th September 2008, 00:25
  3. DS1996 Read/Write
    By Bosse in forum Serial
    Replies: 0
    Last Post: - 30th October 2007, 13:36
  4. Read and write to sd card
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 28th October 2007, 19:47
  5. Read Modify Write problem?
    By markedwards in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 18th November 2005, 21:02

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts