WRITE: One more PBP 2.60 Surprise ...


Results 1 to 23 of 23

Threaded View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653

    Angry WRITE: One more PBP 2.60 Surprise ...

    Code:
      If Mode=2 then                        ' Save Target Temperature (Mode1 -> Mode2)
    	   WRITE 0, TargetTemp / 256		' TargetTemp MSB
    	   WRITE 1, TargetTemp MOD 256          ' TargetTemp LSB
      EndIf
      
      If Mode > 2 Then                      ' Save Hysteresis (Mode 2 -> Mode 0) 
    	   Mode=0               		' Only 0, 1, 2 are valid
    	   WRITE 2, Hyst / 10                   ' Divide Hyst value to fit in Byte
      EndIf
    This was compiling in PBP 2.50c / MPLAB...

    NOW with PBP2.60


    Error[113] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PBP\PBPPIC14.LIB 607 : Symbol not previously defined (WRITE)
    Error[113] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PBP\PBPPIC14.LIB 609 : Symbol not previously defined (WRITE)
    Error[113] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PBP\PBPPIC14.LIB 616 : Symbol not previously defined (WRITE)
    Error[113] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PBP\PBPPIC14.LIB 661 : Symbol not previously defined (WRITE)
    Error[113] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PBP\PBPPIC14.LIB 607 : Symbol not previously defined (WRITE)
    Error[113] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PBP\PBPPIC14.LIB 609 : Symbol not previously defined (WRITE)
    Error[113] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PBP\PBPPIC14.LIB 616 : Symbol not previously defined (WRITE)
    Error[113] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PBP\PBPPIC14.LIB 661 : Symbol not previously defined (WRITE)
    Error[113] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PBP\PBPPIC14.LIB 607 : Symbol not previously defined (WRITE)
    Error[113] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PBP\PBPPIC14.LIB 609 : Symbol not previously defined (WRITE)
    Error[113] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PBP\PBPPIC14.LIB 616 : Symbol not previously defined (WRITE)
    Error[113] C:\PROGRAM FILES\MICROCHIP\MPLAB IDE\PBP\PBPPIC14.LIB 661 : Symbol not previously defined (WRITE)
    Halting build on first failure as requested.
    BUILD FAILED: Sun Aug 23 13:51:04 2009
    ... keep cool !!!

    You should Write now :

    Code:
      If Mode=2 then                        ' Save Target Temperature (Mode1 -> Mode2)
      
      	Dummy = TargetTemp / 256
    	   WRITE 0,Dummy 		' TargetTemp MSB
    	   
    	Dummy = TargetTemp MOD 256	   
    	   WRITE 1,Dummy           ' TargetTemp LSB
      EndIf
      
      If Mode > 2 Then                      ' Save Hysteresis (Mode 2 -> Mode 0) 
    	   Mode=0               		' Only 0, 1, 2 are valid
    	   
    	   Dummy = Hyst / 10
    	   WRITE 2,Dummy                    ' Divide Hyst value to fit in Byte
      EndIf
    Alain
    Last edited by Acetronics2; - 23rd August 2009 at 13:00.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Replies: 14
    Last Post: - 19th January 2012, 19:38
  2. PBP 2.60 & ADCON1 problem
    By bitbangerbob in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st October 2009, 12:06
  3. Another PBP 2.60 Surprise ...
    By Acetronics2 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 25th August 2009, 15:08
  4. Need the code to write to a memory
    By Hamlet in forum General
    Replies: 0
    Last Post: - 20th August 2007, 00:22
  5. Changing declared variables names on the fly
    By jessey in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 16th December 2006, 06:34

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