For anyone using the debugging tools, I've now made a pin list
Code: Select all
ADC_VOLUME PA0
Battery_voltage PA1
RX_UHF_LNA PA2
VOX PA3
PA_DRIVE_DAC PA4
RX_VHF_LNA PA5
KEYPAD_ROW0 PA6
PWR_SW PA7
TBD PA8
GPS_EN PA9
GPS_RX PA10
TBD PA11
TBD PA12
MIC_PWR PA13
TBD PB0
TBD PB1
TBD PB2
SPI1_SCK PB3
SPI1_SDO PB4
SPI1_SDI PB5
TBD PB6
TBD PB7
SPK_MUTE PB8
AUDIO_AMP_EN PB9
TBD PB10
ROTARY_SW_B PB11
V_SPI_CS PB12
SPI2_SCK PB13
SPI2_MISO PB14
SPI2_MOSI PB15
TIME_SLOT_INTER PC0
SYS_INTER PC1
RF_TX_INTER PC2
TBD PC3
PA_EN_2 PC4
PA_EN_1 PC5
PA_BAND_SEL PC6
CTC_DCS_PWM PC7
BEEP_PWM PC8
TBD PC9
TBD PC13
LCD_D2 PD0
LCD_D3 PD1
KEYPAD_ROW1 PD2
KEYPAD_ROW2 PD3
LCD_RD PD4
LCD_WR PD5
LCD_CS PD6
SPI_Flash_CS PD7
LCD_BKLIGHT PD8
RX_AUDIO_MUX PD9
TBD PD10
TBD PD11
LCD_RS PD12
LCD_RST PD13
LCD_D0 PD14
LCD_D1 PD15
LED_GREEN PE0
LED_RED PE1
DMR_SPI_CS PE2
DMR_SPI_CLK PE3
DMR_SPI_MOSI PE4
DMR_SPI_MISO PE5
C6000_PWD PE6
LCD_D4 PE7
LCD_D5 PE8
LCD_D6 PE9
LCD_D7 PE10
PTT PE11
PTT_EXTERNAL PE12
TBD PE13
ROTARY_SW_A PE14
TBD PE15
Because I don't have a UV380 Plus, and can't afford to buy yet another brand new radio to dissassemble and potentially damage, I'm not able to debug the problem some people are having with the backlight when the radio is set to FM
The exterimental version I posted a few days ago, has a serial terminal debugging function, which is accessed by sending the letter D to the radio
The radio should response with "Debug mode ON", if this does not happen, close and reopen the serial terminal connection and try again
Make sure the backlight brightness is set to 100%
Using the debug mode, you can read or write any of the pins listed above
Specifically if the radio is in FM mode and the backlight is not on, issue the command
PD8 H
This sill set the LCD backlight control signal to high and should turn on the backlight.
If this does not work, go into DMR mode, when in theory the backlight may be turned on, and try toggling the backlight On and off using
PD8 T
or
PD8 H
PD8 L
If this does not affect the backlight, then probably the backlight is no longer connected to pin PD8
In the list above there are a number of pins which are potentially unused, and these are described as TBD
To set a pin as output pin use
PxY O
e.g.
PC3 O
this should initially set PC3 to logic low
Now try
PC3 T
etc
If the pin does not seem to control the backlight, set it back to Input mode, otherwise you may damage the CPU chip
e.g.
PC3 I
Then try another TBD pin
If none of the TBD pins seem to control the backlight, then its hard to kow which other pin could have been repurposed if all other functionality in the radio is still working OK.
i.e It can't be using the SPI or I2C communication pins, or the PA control, or the Rx LNAs, etc otherwise the radio would not work correctly in DMR mode etc
PS.
When a pin is in Input mode you can use ? to read the value of that pin e.g.
PC3 ?