LDR0 and LDR1 with a single pushbutton switch

We are building a PCB using the G120 chip, and got a question about the LDR0 and LDR1 pins.
Can I safely join the two pins together, let them float (no pullup to high) ?
And when I would need to upgrade the firmware, I ground them both together (using a pushbutton switch for example)?

The reason why is that we just want to expose a single switch outside the enclosure when a firmware update is necessary.

I already tested the method and it works with the G120HDR, but just want to confirm if it’s an OK solution or if it’s hack that may or may not work in the future.

Looks ok to me

Can I safely join the two pins together, let them float (no pullup to high) ?

I believe the pullups are already on the G120 module.

Yep,

Cobra II schematics suggests the same.

http://www.ghielectronics.com/downloads/FEZ/Cobra_II/FEZ%20Cobra%20II%20sch.pdf

Thanks for the help!

You are welcome!

What about if you need to go into Tinybooter mode as LDR0 needs to be high and LDR1 low?

1 Like

Could happen, but normally you use the G120Updater from GHI once the GHI bootloader is installed.
Seems like a safe design step.

Yes this is how I intend to update the firmware: using the GHI updater.
Thanks for all the feedbacks

Not being able to get into TinyBooter mode may cause a problem in the future with SDK version upgrades?

I think it is alright. Not recommended but in worst case you can enter GHI loader, load tinybooter only without firmware and run teh device. IT will boot in tinybooter :slight_smile:

Hey just to say that so far the solution works.
I press the LDR0+LDR1 as a single switch, reboot the device (either reset or plug and unplug) and I can update the firmware.
This is on our new custom board using the G120.
Thanks!

Can you share details about your product?

And some photos please :smiley:

This is for monitoring and data acquisition of industrial machines.
I will give more info once we have everything all sorted out :slight_smile:

But here are some teasers:
http://s10.postimage.org/x9vz5h5p5/IMG_0269.jpg
http://s13.postimage.org/lbygh9d13/IMG_0270.jpg
http://s21.postimage.org/6hnbb5ytj/IMG_0271.jpg

Mainboard Features:
-wifi
-ethernet
-Power over ethernet
-MicroSD
-G120
-1wire
-RS485
-LCD touchscreen
-Soundcard speaker+mic

IOBoard:
1wire
input of wide range (7v to 280v DC/AC)
output of wide range (0-280V AC/DC 12a)

5 Likes

Nice! I love that we’re seeing more commercial products posted here lately. :smiley:

Please share with us. Maybe we can post on showcase as well, like this one http://www.tinyclr.com/forum/topic?id=11189

@ PhilM - Great looking device!