Problems Using Debug to select saved screens in a TRM-425 serial display


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2009
    Posts
    18

    Unhappy Problems Using Debug to select saved screens in a TRM-425 serial display

    Hi All,

    I'm having problems selecting Saved Screens in a TRM-425 display. I'm using PBP and
    everything is Compiling and programming properly. I'm pretty new at this, and any help
    you can be will be greatly appreciated. I can see the serial data going into the TRM-425
    serial input pin on the display with a scope but, only Screen 0 (Zero) is being displayed.
    The display never changes.

    Thanks Again!

    Here's the code I'm attempting to use:

    '************************************************* ***************
    '* Name : UNTITLED.BAS *
    '* Author : [select VIEW...EDITOR OPTIONS] *
    '* Notice : Copyright (c) 2012 [select VIEW...EDITOR OPTIONS] *
    '* : All Rights Reserved *
    '* Date : 5/2/2012 *
    '* Version : 1.0 *
    '* Notes : *
    '* : *
    '************************************************* ***************
    CLEAR ;always start with clear
    DEFINE OSC 4 ;define oscillator speed
    DEFINE ADC_BITS 8 ; Sets number of bits in result
    DEFINE ADC_CLOCK 3 ; Sets clock source (3=rc)
    DEFINE ADC_SAMPLEUS 50 ; Sets sampling time in uS
    define DEBUG_REG PORTC
    DEFINE DEBUG_BIT 6
    define DEBUG_BAUD 9600
    DEFINE DEBUG_MODE 0
    DEFINE DEBUG_PACING 1000
    Low PORTE.2 ;makes low for write only
    TRISA = %00001111 ;sets 0, 1, 2, and 3 as porta inputs (A to D's & ref's)
    TRISB = %00111111 ;sets bits 6 & 7 portb pins as outputs, 0 thru 5 as inputs
    TRISC = %10111111 ;sets port c.6 for serial output
    TRISD = %00000011 ;sets PORTD 0,1, lines to inputs, rest to outputs
    TRISE = %00000000 ;sets all PORTE lines to outputs

    Start:

    Debug 12, 27, 69, 0, 32 'Mine's Screen
    pause 2000
    Debug 12, 27, 69, 1, 32 '100% Screen
    Pause 1000
    Debug 12, 27, 69, 2, 32 '95% Screen
    Pause 1000
    Debug 12, 27, 69, 3, 32 '90% Screen
    Pause 1000
    Debug 12, 27, 69, 4, 32 '85% Screen
    Pause 1000
    Debug 12, 27, 69, 5, 32 '80% Screen
    pause 1000
    Debug 12, 27, 69, "6", 32 '75
    Pause 1000
    Debug 12, 27, 69, "7" '70
    Pause 1000
    Debug 12, 27, 69, "8" '65
    Pause 1000
    Debug 12, 27, 69, "9" '60
    Pause 1000
    Debug 12, 27, 69, "10" '55
    pause 1000
    Debug 12, 27, 69, "11" '50
    Pause 1000
    Debug 12, 27, 69, "12" '45
    Pause 1000
    Debug 12, 27, 69, "13" '40
    Pause 1000
    Debug 12, 27, 69, "14" '35
    Pause 1000
    Debug 12, 27, 69, "15" '30
    pause 1000
    Debug 12, 27, 69, "16" '25
    Pause 1000
    Debug 12, 27, 69, "17" '20
    Pause 1000
    Debug 12, 27, 69, "18" '15
    Pause 1000
    Debug 12, 27, 69, "19" '10
    Pause 1000
    debug 12, 27, 69, "20" '5

    Goto Start

    End

  2. #2
    Join Date
    Apr 2009
    Posts
    18

    Default Re: Problems Using Debug to select saved screens in a TRM-425 serial display

    Problem has been solved!

  3. #3
    Join Date
    Oct 2005
    Posts
    8

    Thumbs up Re: Problems Using Debug to select saved screens in a TRM-425 serial display

    Ok, but what was the solution??

Members who have read this thread : 1

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