changeset 34:dfa0d08d8f2b

charging LED circuit captured
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 22 Nov 2021 03:25:55 +0000
parents 1d2b57d4f1c9
children 971c05950675
files venus/src/MCL venus/src/Makefile venus/src/periph/charging_led.v venus/src/top/mobile.v
diffstat 4 files changed, 23 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/venus/src/MCL	Mon Nov 22 03:03:15 2021 +0000
+++ b/venus/src/MCL	Mon Nov 22 03:25:55 2021 +0000
@@ -533,6 +533,7 @@
 
 # Charging LED
 D403:
+ hier=mob.chg_led.led
  part=red-led
 
 # Schottky diode in charging circuit
@@ -914,6 +915,13 @@
  pinout=resistor_with_sense.pinout
  npins=4
 
+# Charging LED series resistor
+R408:
+ hier=mob.chg_led.R
+ value=TBD
+ footprint=0402
+ npins=2
+
 # attenuators in the Tx path from Rita to PA
 part chip_atten:
  device=RAC101A-3dB
--- a/venus/src/Makefile	Mon Nov 22 03:03:15 2021 +0000
+++ b/venus/src/Makefile	Mon Nov 22 03:25:55 2021 +0000
@@ -9,9 +9,9 @@
 	core/rita_rf_chip.v core/rita_vcxo_int.v core/rita_wrap.v \
 	core/xtal_32khz_wrap.v \
 	periph/Si9407AEY.v periph/battery.v periph/calypso_uart_in.v \
-	periph/charging_circuit.v periph/inv_buffer_74LVC1G04.v \
-	periph/jtag_if.v periph/sim_socket_block.v periph/sim_socket_wrap.v \
-	periph/sma_wrap.v \
+	periph/charging_circuit.v periph/charging_led.v \
+	periph/inv_buffer_74LVC1G04.v periph/jtag_if.v \
+	periph/sim_socket_block.v periph/sim_socket_wrap.v periph/sma_wrap.v \
 	top/board.v top/mobile.v \
 	usb/FT2232D_block.v usb/FT2232D_chip.v usb/eeprom_93Cx6_16bit.v \
 	usb/regulator_ic.v usb/regulator_with_caps.v usb/usb_conn.v \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/venus/src/periph/charging_led.v	Mon Nov 22 03:25:55 2021 +0000
@@ -0,0 +1,11 @@
+module charging_led (VCHG, LEDC);
+
+input VCHG, LEDC;
+
+wire mid;
+
+resistor R (VCHG, mid);
+
+basic_LED led (.A(mid), .C(LEDC));
+
+endmodule
--- a/venus/src/top/mobile.v	Mon Nov 22 03:03:15 2021 +0000
+++ b/venus/src/top/mobile.v	Mon Nov 22 03:25:55 2021 +0000
@@ -151,6 +151,7 @@
 			.VCCS(VCCS),
 			.VBATS(VBATS)
 	);
+charging_led chg_led (.VCHG(VCHG), .LEDC(LED_C));
 
 /* Calypso UART inputs */
 calypso_uart_in uart (  .GND(GND),