Alarm lockup firmware bug


Instructions, hints and discussion for constructors of our first 5-tube nixie clock.

Site Admin

Posts: 921

Joined: Tue Jul 24, 2012 8:05 pm

Post Sun Aug 31, 2014 7:45 pm

Alarm lockup firmware bug

Well the inevitable bug turned up :oops:.

When the alarm is activated, deactivating it using the IR sensor can cause the clock to lock up and not respond to the proximity sensor until powered down and reset (either by removing the processor from the board or waiting for the backup capacitor to discharge).

The IR sensor has 3 levels of distance sensing, normally only 2 of these are used but the third was at one point intended to be used for the alarm disable. In the final code it wasn't but the link to it wasn't remmed out.

If you switch off the alarm by holding your hand above the sensor at the top or middle of its sensing range everything will work fine, however if you hold it too close to the clock it will activate the unwanted 3rd level and lock up.

If you have access to a pic programmer I've attached an updated hex file, if not please contact me to arrange a replacement processor.

Sorry about that - we really did test everything repeatedly but there's always (at least) one that gets away.

Note that this only affects the first batch of kits.
Attachments
5-tube clock v1.1 piccode.rar
(7.73 KiB) Downloaded 551 times

Site Admin

Posts: 921

Joined: Tue Jul 24, 2012 8:05 pm

Post Sun Aug 31, 2014 9:12 pm

Re: Alarm lockup firmware bug

Version with added AM/PM DP indicator in the minutes-tens tube.
Attachments
5-tube clock v1.1 PM DP piccode.rar
(7.79 KiB) Downloaded 528 times

Site Admin

Posts: 921

Joined: Tue Jul 24, 2012 8:05 pm

Post Fri Nov 07, 2014 7:32 pm

Re: Alarm lockup firmware bug

...and just in case anyone wants to play with the code, here is the .asm file. I think most of the profanities have been edited out of the comments ;)
Attachments
5-tube clock code Oct14.rar
(23.72 KiB) Downloaded 592 times

Posts: 7

Joined: Wed Nov 26, 2014 3:10 am

Post Mon Jan 26, 2015 2:40 am

Re: Alarm lockup firmware bug

Tony wrote:...and just in case anyone wants to play with the code, here is the .asm file. I think most of the profanities have been edited out of the comments ;)


Tony, on the supplied assembler source. What assemble did you use to build this code?

Site Admin

Posts: 921

Joined: Tue Jul 24, 2012 8:05 pm

Post Mon Jan 26, 2015 3:46 am

Re: Alarm lockup firmware bug

Just the standard microchip MPLAB IDE, version 8.90. The configuration bits should already be set in the code, processor type is 16f1827 and use a PICKIT3 to program.

Site Admin

Posts: 921

Joined: Tue Jul 24, 2012 8:05 pm

Post Sun Mar 01, 2015 1:39 am

Re: Alarm lockup firmware bug

As requested, a version which doesn't blank the leading zero in 12h mode :?
Attachments
5-tube clock 12h mod piccode.rar
(7.75 KiB) Downloaded 533 times

Posts: 37

Joined: Sat Nov 11, 2017 1:18 pm

Post Tue Apr 24, 2018 8:29 pm

Re: Alarm lockup firmware bug

Hello Tony, could you provide the latest asm updated version? I would like to start from it to add the GPS fix code...
Thank you for that !

Posts: 37

Joined: Sat Nov 11, 2017 1:18 pm

Post Sat Apr 28, 2018 10:21 am

Re: Alarm lockup firmware bug

Hello,
please find here the fixed version (asm + hex) of the clock.
This version fixes the GPS issue (clock crash when GPS is not ready to transmit correct hhmmss strings)
I tested it, and it definitely fixes the issue! :P
do not hesitate to try it ! and give me back your comments
Attachments
5-tube_clock_code_apr18_correction_v1.zip
(33.61 KiB) Downloaded 90 times

Site Admin

Posts: 921

Joined: Tue Jul 24, 2012 8:05 pm

Post Sun May 06, 2018 4:17 am

Re: Alarm lockup firmware bug

Hi,
Thanks - I haven't checked the forums for a few days. I'll give it a try over the weekend,

Tony.

Posts: 37

Joined: Sat Nov 11, 2017 1:18 pm

Post Sun Jul 08, 2018 5:06 pm

Re: Alarm lockup firmware bug

Hello,
here is a new version of the code. I hope this is the final one!
Here is a description of the changes:
- Added parts of the GPS code that is taken from the "TimeFlies" kit ( I added the control of a valid GPS string : control of the character "A")
- Fixed the bug of the BST time that was not taken into account when connecting a GPS
- Fixed several bugs linked to the use of variables in bank1 (some variables in Bank1 were used in the code without the instruction "Banksel1" before them)

You can find all my fixes by searching "EBD" in the comments
This version is under test since the 03rd of July and I saw no default for the moment
Attachments
5-tube clock code_july2018.zip
(34.21 KiB) Downloaded 82 times
Next

Return to IN-14 V1 5-tube nixie clock

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software