This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to address the ports of the processor?

How to address the ports of the Teridian 71M6541FT processor from the µVision program on the C?

Ports list:   SEGDIO0 – SEGDIO14 SEGDIO19 – SEGDIO27 SEGDIO36 – SEGDIO39 SEGDIO44 SEGDIO45 SEGDIO51   COM0 – COM3 SEG46 SEG47 PB VLCD VREF IAP IAN V3P3A VA TEST GNDA XOUT XIN VBAT_RTC VBAT V3P3SYS IBP IBN GNDD V3P3D VDD ICE_E SEG48 – SEG50 RX TX

Parents
  • It is easier to determine the state of certain pins.

    For example the state of the GND pin can be determined like this

    
    #define GND 0
    .
    .
    .
    ValueOfGndPin = GND;
    
    

    And the state of the 3V3 power pin can be determined like this

    
    #define POWER 1
    .
    .
    .
    ValueOfPowerPin = POWER;
    
    

    You can also check for good power like this

    
    #define POWER 1
    .
    .
    .
    if (0 === POWER)
      WhatTheFlick();
    
    

Reply
  • It is easier to determine the state of certain pins.

    For example the state of the GND pin can be determined like this

    
    #define GND 0
    .
    .
    .
    ValueOfGndPin = GND;
    
    

    And the state of the 3V3 power pin can be determined like this

    
    #define POWER 1
    .
    .
    .
    ValueOfPowerPin = POWER;
    
    

    You can also check for good power like this

    
    #define POWER 1
    .
    .
    .
    if (0 === POWER)
      WhatTheFlick();
    
    

Children