![]() |
Forum Index : Microcontroller and PC projects : Nokia5110 and loadable CFunction
Page 1 of 2 ![]() ![]() |
|||||
Author | Message | ||||
kermess Regular Member ![]() Joined: 04/04/2013 Location: SpainPosts: 45 |
Hi. I have installed on my breadboard the NOKIA 5110 with PIC32MX170 and I installed this program CFunction NOKIA5110loadable.bas I've tried in two different breadboard and the result is the same. The only difference is that I use in DCpin, RSTpin y CSpin these other pines 22,21 y 23. Then describe in detail the implementation process. CPU . NEW and LIBRARY DELETE. ok LOAD the NOKIA5110loadable.bas ok CPU .. Power OFF and Power ON ok The Cfunction is ON ok I write in Command Line (TeraTherm) dirctly TEXT X,Y, Micromite POS 0,0 0,11 0,22 0,33 ![]() Display definition 4X10 with de Font definition by defect So far everything is correct If I mount a program directly through the editor and RUN This is the result ![]() This is the program. -------------------------------------------------------------------------------------- 'MODE TEXT in NOKIA5110 Display with this CFUNCTION 'NOKIA5110loadable.bas Input "Text ",a$ 'manual pause CLS Do Text 0,0, "1 Linetext" Input "Text ",a$ 'manual pause Text 0,11,"2 linetext" Input "Text ",a$ 'manual pause Text 0,22,"3 linetext" Input "Text ",a$ 'manual pause Text 0,33,"4 linetext" Input "Text ",a$ 'manual pause CLS Loop If I stop in the program and manually type TEXT everything is correct. QUESTION what am I doing wrong ..?? Someone has happened .. ?? Possible solutions .. ?? Thank you. A greeting. David. |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2927 |
Hi David, Out of interest, which version of MMBasic are you running (shown at the start-up message)? Also, can you try commenting out all the lines in your DO..LOOP apart from the first two (TEXT 0,0.... and INPUT ....), and the last one (CLS). Then run your code and see if it prints the '1 Linetext' message on the screen WW |
||||
kermess Regular Member ![]() Joined: 04/04/2013 Location: SpainPosts: 45 |
Hi WW Micromite version is "Micromite MKII MMBasic View 5.1" If I run print MM.VER is "5.01" The program only intend to evaluate the printing in screen Nokia 5110 Through each written line four there exists a pause. My intention with this display is to present small written messages. The graphic parts we do not interest me, although I have tried several circles and presents well. David |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10066 |
This is a bug introduced because of a change in 5.1. Unfortunately it is quite a difficult fix. Please hang on and I'll post updated code ASAP |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10066 |
David Please try this new version. [code]sub mm.startup NOKIA5110(2,3,4,&HBb,1) 'DCpin, RSTpin, CSpin, Contrast, orientation end sub ' CSUB NOKIA5110 000001FA 'spi_write_command 27BDFFE0 AFBF001C AFB10018 AFB00014 309100FF 3C109D00 8E030090 8E02001C 8064002C 0040F809 24050005 8E030090 8E02001C 8064002D 0040F809 24050005 3C02BF80 AC515820 3C03BF80 8C625810 30420080 1040FFFD 3C02BF80 8C425820 3C029D00 8C430090 8C42001C 8064002D 0040F809 24050006 8FBF001C 8FB10018 8FB00014 03E00008 27BD0020 'LCD_setxy 27BDFFE8 AFBF0014 AFB00010 00A08021 3084007F 34840080 0411FFD6 00000000 36040040 308400FF 0411FFD2 00000000 8FBF0014 8FB00010 03E00008 27BD0018 'updatedisplay 27BDFFC8 AFBF0034 AFBE0030 AFB7002C AFB60028 AFB50024 AFB40020 AFB3001C AFB20018 AFB10014 AFB00010 3C029D00 8C42008C 8C540000 928201F8 1040003B 3C02BF80 A28001F8 8C565830 8C575800 8C5E5840 34038060 AC435800 24030002 AC435830 24030C00 AC435840 00009021 00009821 3C119D00 26950054 3C10BF80 00002021 02602821 0411FFCD 00000000 8E230090 8E22001C 8064002D 0040F809 24050005 8E230090 8E22001C 8064002C 0040F809 24050006 26440054 0244102A 1040000D 26730001 02921821 02B29021 90620000 AE025820 8E025810 30420080 1040FFFD 00000000 8E025820 24630001 5472FFF8 90620000 24020006 1662FFE0 00809021 3C029D00 8C430090 8C42001C 8064002D 0040F809 24050006 3C02BF80 AC565830 AC575800 AC5E5840 8FBF0034 8FBE0030 8FB7002C 8FB60028 8FB50024 8FB40020 8FB3001C 8FB20018 8FB10014 8FB00010 03E00008 27BD0038 'DrawRectangleMEM 27BDFFD0 AFBF002C AFB50028 AFB40024 AFB30020 AFB2001C AFB10018 AFB00014 00808821 00A09821 00C09021 00E0A021 3C029D00 8C42008C 8C420000 904401F9 240300F5 10830009 8FB00040 3C159D00 8EA2003C 0040F809 240402F8 8EA3008C AC620000 2403FFF5 A04301F9 3C039D00 8C630090 80630015 24040002 14640009 24040003 24030053 00742023 00731823 0220A021 02409821 00609021 10000012 00808821 14640008 24040004 24030053 00718823 00729023 2403002F 00739823 10000009 0074A023 14640007 2403002F 00712023 00721823 02809021 0060A021 02608821 00809821 0232182A 14600005 0274182A 02201821 02408821 00609021 0274182A 14600005 2A230000 02601821 02809821 0060A021 2A230000 0003880B 24030053 2A240054 0064880A 2A440000 0004900B 2A440054 0064900A 2A630000 0003980B 2403002F 2A640030 0064980A 2A840000 0004A00B 2A840030 0064A00A 0251182A 10600029 0293402A 1000002C 24030001 24640007 28650000 0065200A 000428C3 00053080 00052100 00862023 000430C0 00C42023 00913021 000327C3 00042742 00642821 30A50007 00A42823 00A72804 12000006 30A500FF 00463021 90C40000 00A42825 10000006 A0C50000 00463021 00052827 90C40000 00852824 A0C50000 24630001 0283202A 1080FFE2 24640007 26310001 0251182A 10600004 24030001 10000007 A04301F8 24070001 1100FFD8 02601821 1000FFF7 26310001 A04301F8 8FBF002C 8FB50028 8FB40024 8FB30020 8FB2001C 8FB10018 8FB00014 03E00008 27BD0030 'DrawBitmapMEM 27BDFFB0 AFBF004C AFBE0048 AFB70044 AFB60040 AFB5003C AFB40038 AFB30034 AFB20030 AFB1002C AFB00028 AFA40050 00A0A821 00C08821 AFA7005C 8FB00060 8FB30068 3C029D00 8C42008C 8C420000 904401F9 240300F5 10830009 8FB2006C 3C149D00 8E82003C 0040F809 240402F8 8E83008C AC620000 2403FFF5 A04301F9 8FA3005C 18600093 0200F021 AFB5001C 00112023 AFA40020 70711802 2463FFFF AFA30014 AFB10024 0000B821 AFA00018 24140001 3C079D00 24080002 240A0003 10000080 240E0004 8CE60090 80CC0015 15880007 00602021 8CE40098 8C840000 2484FFFF 00603021 10000013 008B2023 158A000A 00000000 8CE40094 8C840000 2484FFFF 00832023 8CE60098 8CC60000 24C6FFFF 10000008 00CB3023 158E0006 01203021 8CE60094 8CC60000 24C6FFFF 00C33023 01202021 2C8C0054 51800030 24A50001 04C0002D 28CC0030 5180002C 24A50001 24CC0007 28CD0000 00CD600A 000C68C3 000D6080 000D6900 01AC6023 000C68C0 01AC6023 01842021 000667C3 000C6742 00CC3021 30C60007 00CC3023 00D43004 30C600FF 00066027 92CD0000 01B56824 11A0000C 318C00FF 8FAD0064 11A00005 00442021 908C0000 00CC3025 1000000E A0860000 90860000 01866024 1000000A A08C0000 12600005 00442021 908C0000 00CC3025 10000004 A0860000 90860000 01866024 A08C0000 24A50001 14B0FFB1 24630001 25EF0001 2718FFFF 11F10010 033EC821 01F71821 24640007 28760000 0096180B 0003B0C3 0256B021 00181FC3 00031F42 0303A821 32B50007 02A3A823 02B4A804 03201821 1000FF9E 00002821 8FA30010 24630001 AFA30010 14700004 256B0001 10000008 8FA40018 AFA00010 1A20FFF7 01604821 8FB90050 8FB80014 1000FFE4 00007821 24840001 AFA40018 8FAD001C 01BE6821 AFAD001C 8FA30014 8FA40020 00641821 AFA30014 8FAD0024 8FA30018 8FA4005C 10640005 02EDB821 1E00FFEA 8FAB001C 1000FFEF 8FA40018 24030001 A04301F8 8FBF004C 8FBE0048 8FB70044 8FB60040 8FB5003C 8FB40038 8FB30034 8FB20030 8FB1002C 8FB00028 03E00008 27BD0050 'getFPC 27BDFFF8 AFBF0004 00852023 03E42021 ACC40000 8FBF0004 03E00008 27BD0008 'pstring 27BDFFE0 AFBF001C AFB00018 00808021 00002021 3C059D00 24A507C4 27A60010 0411FFEF 00000000 8FA40010 3C029D00 8C42002C 0040F809 02042021 8FBF001C 8FB00018 03E00008 27BD0020 'main 27BDFFC0 AFBF003C AFB50038 AFB40034 AFB30030 AFB2002C AFB10028 AFB00024 00809021 00A08821 00C09821 00E0A021 00002021 3C059D00 24A50830 27A60018 0411FFD4 00000000 3C109D00 8E020090 8E230000 A043002E 8E020090 8E430000 A043002C 8E020090 8E630000 A043002D 8E020090 8FA30050 8C630000 A0430015 8E02003C 0040F809 240402F8 8E03008C AC620000 2403FFF5 A04301F9 8E030090 8E020010 8064002E 24050008 0040F809 00003021 8E030090 8E020010 8064002E 24050065 0040F809 00003021 8E030090 8E02001C 8064002E 0040F809 24050006 8E030090 8E020010 8064002C 24050008 0040F809 00003021 8E030090 8E020010 8064002C 24050065 0040F809 00003021 8E030090 8E02001C 8064002C 0040F809 24050006 8E030090 8E020010 8064002D 24050008 0040F809 00003021 8E030090 8E020010 8064002D 24050065 0040F809 00003021 8E030090 8E02001C 8064002D 0040F809 24050006 3C02BF81 8C44F220 7C84D800 3C030661 3463A053 1083000B 24020050 3C02BF81 8C43F220 7C63D800 3C020660 3442A053 00621026 24030050 2404000C 0082180B 00601021 3C039D00 8C630088 00431021 8C430000 24020064 54620007 00008821 3C02BF80 8C515830 8C525800 8C555840 10000003 3C029D00 00009021 3C029D00 8C420010 3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B 24040014 3C03BF81 8C64F220 7C84D800 3C030660 3463A053 00832026 24030014 24050003 00A4180B 00602021 24050008 0040F809 00003021 3C029D00 8C420010 3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B 24040014 3C03BF81 8C64F220 7C84D800 3C030660 3463A053 00832026 24030014 24050003 00A4180B 00602021 24050065 0040F809 00003021 3C029D00 8C420010 3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B 24040029 3C03BF81 8C64F220 7C84D800 3C030660 3463A053 00832026 24030029 2405000E 00A4180B 00602021 24050002 0040F809 00003021 3C029D00 8C420010 3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B 24040029 3C03BF81 8C64F220 7C84D800 3C030660 3463A053 00832026 24030029 2405000E 00A4180B 00602021 24050065 0040F809 00003021 3C029D00 8C420010 3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B 2404000E 3C03BF81 8C64F220 7C84D800 3C030660 3463A053 00832026 2403000E 24050019 00A4180B 00602021 24050008 0040F809 00003021 3C029D00 8C420010 3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B 2404000E 3C03BF81 8C64F220 7C84D800 3C030660 3463A053 00832026 2403000E 24050019 00A4180B 00602021 24050065 0040F809 00003021 3C02BF81 8C43FA84 24040001 7C831804 AC43FA84 3C02BF81 8C43FB04 24040003 7C831804 AC43FB04 3C02BF80 34038060 AC435800 24030002 AC435830 24030C00 AC435840 16200005 3C109D00 8C515830 8C525800 8C555840 3C109D00 8E030090 8E02001C 8064002E 0040F809 24050006 8E020004 0040F809 24042710 8E030090 8E02001C 8064002E 0040F809 24050005 8E020004 0040F809 24042710 8E030090 8E02001C 8064002E 0040F809 24050006 8E020004 0040F809 24042710 24040021 0411FCD8 00000000 24040006 0411FCD5 00000000 24040014 0411FCD2 00000000 24040020 0411FCCF 00000000 2404000C 0411FCCC 00000000 24040021 0411FCC9 00000000 92840000 0411FCC6 00000000 24040020 0411FCC3 00000000 8E020090 90420015 30420001 10400008 3C029D00 8C430094 24040054 AC640000 8C420098 24030030 10000007 AC430000 8C430098 24040054 AC640000 8C420094 24030030 AC430000 8FA50018 3C029D00 8C430048 3C049D00 24840228 00852021 AC640000 8FA50018 8C43004C 3C049D00 24840470 00852021 AC640000 8FA50018 8C430084 3C049D00 248400CC 00852021 AC640000 8C430048 8C440094 8C860000 8C420098 8C470000 AFA00010 8C620000 00002021 00002821 24C6FFFF 0040F809 24E7FFFF 3C02BF80 AC515830 AC525800 AC555840 3C049D00 24840E00 0411FE71 00000000 8FBF003C 8FB50038 8FB40034 8FB30030 8FB2002C 8FB10028 8FB00024 03E00008 27BD0040 '.rodata 'startup 494B4F4E 31313541 72642030 72657669 616F6C20 0D646564 0000000A End CSUB [/code] |
||||
kermess Regular Member ![]() Joined: 04/04/2013 Location: SpainPosts: 45 |
Hi, Fill the text screen, 10X4 CHR$ are 20 milliseconds ..... Four lines 10 CHR$ Perfect, guai, Thanks peter, .... Phil the same Gracias a todos. David |
||||
kermess Regular Member ![]() Joined: 04/04/2013 Location: SpainPosts: 45 |
Hi Peter. You can change the definition of text 10X4 chr to 14X6 chr .. ??? It is to get maximum data on this small screen. If it is posible .... Thank you. David |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10066 |
No sorry, this is based on the size of the smallest font which is 12x8. Nothing I can do about this. You could try using Jim's program to define a few characters in a 8x6 font as a test. None of us are sure if the MM firware will work with a font less than 8 wide. It would be a useful test for you to do. If it does work there are 8x6 fonts available which would then just need converting |
||||
kermess Regular Member ![]() Joined: 04/04/2013 Location: SpainPosts: 45 |
Hi Peter. I tried this program and the sources they have are perfect as they are in 14 chr X 6 lines. 2014-02-18_072256_Nokia5110Clock.zip The drawback is that because so cfunction not be in the calling process to print text on screen is much slower. Anyway thank you very much for your help. I can work with the definition 10 chr X 4 lines Un saludo. David. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10066 |
David See new thread for loadable 8x6 font which will give 14 x 6 display. Just include the font definition in your program and set it as the default "FONT 8" |
||||
kermess Regular Member ![]() Joined: 04/04/2013 Location: SpainPosts: 45 |
Thanks peter code is welcome, now I just need to learn how to put the code in the uMite and know how to activate the new "Font 8" Gracias David |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10066 |
couldn't be easier: FONT 8 text 0,0,"This prints in font number 8" end DefineFont #8 5C200806 00000000 82200000 00800008 00004551 4F510000 0045F994 2B1CEA21 690000C2 B04C2090 AA104A62 84608046 00000000 40108410 81400081 00841004 A89C8A00 82000080 0080203E 30000000 00000042 0000003E 01000000 21000086 00004208 CAAA2972 82210027 00872008 21842072 42F8800F 00270A04 F824C510 0FFA0041 00270A02 8A3C0831 21F80027 00044108 8A9C2872 28720027 0027089E 61008601 86010080 00846000 40208410 0F000081 0000F880 10028140 20720084 00022084 BA9A2072 28720027 8028FAA2 8ABC28F2 2872002F 00278220 8AA248E2 08FA004E 800F823C 823C08FA 28720008 80278A2E 8ABE288A 82708028 00872008 12044138 4A8A0046 8048A230 82200882 6A8B800F 80288AAA 9AAA2C8A 28728028 00278AA2 82BC28F2 28720008 8046AAA2 A2BC28F2 087A8048 002F081C 200882F8 288A0082 00278AA2 89A2288A 288A0042 00A5AAAA 5208258A 288A8028 00822094 420821F8 0471800F 00074110 A9944AA9 4170804A 00471004 00804821 00000000 800F0000 00008140 07000000 80277A02 8A320B82 0700002F 00278220 8AA62608 07008027 0007FA22 41382431 E8010004 002778A2 8A320B82 06208028 00872008 12040310 09820046 0089C228 20088260 0D000087 8028AA2A 8A320B00 07008028 00278A22 F2220F00 06000008 802078A6 82320B00 07000008 002F7020 41100E41 08000023 80668AA2 89A20800 08000042 00A5AAA2 21940800 08008048 002778A2 21840F00 0400800F 0EE24028 End DefineFont |
||||
kermess Regular Member ![]() Joined: 04/04/2013 Location: SpainPosts: 45 |
Peter .... OK ...... perfect. ![]() Muchas gracias. David |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1965 |
I have a project that uses a NOKIA5110 screen. I am using Jman's code but thought I would give this one a go. I loaded the code but can't get it to work, I read Embedded C Modules that comes with the Firmware distribution but having problems. How and when do I call the Csub and get text to the screen. Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10066 |
Connect the normal SPI pins to the clock and data connections Then edit the attached to use the correct pins for your application (DCpin, RSTpin, CSpin) and load it to the Micromite - and then reboot. The driver should report it is loaded when you reboot. You can then use all the normal graphics commands "TEXT", "BOX" etc. from the command line to test all is OK e.g. TEXT 0,0,"Hello" If all is well use "LIBRARY SAVE" then "NEW" and reboot again. The driver should report that it is loaded and you can then forget it and work on your application. It will automatically be loaded after every reboot until you do "LIBRARY DELETE" sub mm.startup
NOKIA5110(2,3,4,&HBb,1) 'DCpin, RSTpin, CSpin, Contrast, orientation end sub ' CSUB NOKIA5110 000001FA 'spi_write_command 27BDFFE0 AFBF001C AFB10018 AFB00014 309100FF 3C109D00 8E030090 8E02001C 8064002C 0040F809 24050005 8E030090 8E02001C 8064002D 0040F809 24050005 3C02BF80 AC515820 3C03BF80 8C625810 30420080 1040FFFD 3C02BF80 8C425820 3C029D00 8C430090 8C42001C 8064002D 0040F809 24050006 8FBF001C 8FB10018 8FB00014 03E00008 27BD0020 'LCD_setxy 27BDFFE8 AFBF0014 AFB00010 00A08021 3084007F 34840080 0411FFD6 00000000 36040040 308400FF 0411FFD2 00000000 8FBF0014 8FB00010 03E00008 27BD0018 'updatedisplay 27BDFFC8 AFBF0034 AFBE0030 AFB7002C AFB60028 AFB50024 AFB40020 AFB3001C AFB20018 AFB10014 AFB00010 3C029D00 8C42008C 8C540000 928201F8 1040003B 3C02BF80 A28001F8 8C565830 8C575800 8C5E5840 34038060 AC435800 24030002 AC435830 24030C00 AC435840 00009021 00009821 3C119D00 26950054 3C10BF80 00002021 02602821 0411FFCD 00000000 8E230090 8E22001C 8064002D 0040F809 24050005 8E230090 8E22001C 8064002C 0040F809 24050006 26440054 0244102A 1040000D 26730001 02921821 02B29021 90620000 AE025820 8E025810 30420080 1040FFFD 00000000 8E025820 24630001 5472FFF8 90620000 24020006 1662FFE0 00809021 3C029D00 8C430090 8C42001C 8064002D 0040F809 24050006 3C02BF80 AC565830 AC575800 AC5E5840 8FBF0034 8FBE0030 8FB7002C 8FB60028 8FB50024 8FB40020 8FB3001C 8FB20018 8FB10014 8FB00010 03E00008 27BD0038 'DrawRectangleMEM 27BDFFD0 AFBF002C AFB50028 AFB40024 AFB30020 AFB2001C AFB10018 AFB00014 00808821 00A09821 00C09021 00E0A021 3C029D00 8C42008C 8C420000 904401F9 240300F5 10830009 8FB00040 3C159D00 8EA2003C 0040F809 240402F8 8EA3008C AC620000 2403FFF5 A04301F9 3C039D00 8C630090 80630015 24040002 14640009 24040003 24030053 00742023 00731823 0220A021 02409821 00609021 10000012 00808821 14640008 24040004 24030053 00718823 00729023 2403002F 00739823 10000009 0074A023 14640007 2403002F 00712023 00721823 02809021 0060A021 02608821 00809821 0232182A 14600005 0274182A 02201821 02408821 00609021 0274182A 14600005 2A230000 02601821 02809821 0060A021 2A230000 0003880B 24030053 2A240054 0064880A 2A440000 0004900B 2A440054 0064900A 2A630000 0003980B 2403002F 2A640030 0064980A 2A840000 0004A00B 2A840030 0064A00A 0251182A 10600029 0293402A 1000002C 24030001 24640007 28650000 0065200A 000428C3 00053080 00052100 00862023 000430C0 00C42023 00913021 000327C3 00042742 00642821 30A50007 00A42823 00A72804 12000006 30A500FF 00463021 90C40000 00A42825 10000006 A0C50000 00463021 00052827 90C40000 00852824 A0C50000 24630001 0283202A 1080FFE2 24640007 26310001 0251182A 10600004 24030001 10000007 A04301F8 24070001 1100FFD8 02601821 1000FFF7 26310001 A04301F8 8FBF002C 8FB50028 8FB40024 8FB30020 8FB2001C 8FB10018 8FB00014 03E00008 27BD0030 'DrawBitmapMEM 27BDFFB0 AFBF004C AFBE0048 AFB70044 AFB60040 AFB5003C AFB40038 AFB30034 AFB20030 AFB1002C AFB00028 AFA40050 00A0A821 00C08821 AFA7005C 8FB00060 8FB30068 3C029D00 8C42008C 8C420000 904401F9 240300F5 10830009 8FB2006C 3C149D00 8E82003C 0040F809 240402F8 8E83008C AC620000 2403FFF5 A04301F9 8FA3005C 18600093 0200F021 AFB5001C 00112023 AFA40020 70711802 2463FFFF AFA30014 AFB10024 0000B821 AFA00018 24140001 3C079D00 24080002 240A0003 10000080 240E0004 8CE60090 80CC0015 15880007 00602021 8CE40098 8C840000 2484FFFF 00603021 10000013 008B2023 158A000A 00000000 8CE40094 8C840000 2484FFFF 00832023 8CE60098 8CC60000 24C6FFFF 10000008 00CB3023 158E0006 01203021 8CE60094 8CC60000 24C6FFFF 00C33023 01202021 2C8C0054 51800030 24A50001 04C0002D 28CC0030 5180002C 24A50001 24CC0007 28CD0000 00CD600A 000C68C3 000D6080 000D6900 01AC6023 000C68C0 01AC6023 01842021 000667C3 000C6742 00CC3021 30C60007 00CC3023 00D43004 30C600FF 00066027 92CD0000 01B56824 11A0000C 318C00FF 8FAD0064 11A00005 00442021 908C0000 00CC3025 1000000E A0860000 90860000 01866024 1000000A A08C0000 12600005 00442021 908C0000 00CC3025 10000004 A0860000 90860000 01866024 A08C0000 24A50001 14B0FFB1 24630001 25EF0001 2718FFFF 11F10010 033EC821 01F71821 24640007 28760000 0096180B 0003B0C3 0256B021 00181FC3 00031F42 0303A821 32B50007 02A3A823 02B4A804 03201821 1000FF9E 00002821 8FA30010 24630001 AFA30010 14700004 256B0001 10000008 8FA40018 AFA00010 1A20FFF7 01604821 8FB90050 8FB80014 1000FFE4 00007821 24840001 AFA40018 8FAD001C 01BE6821 AFAD001C 8FA30014 8FA40020 00641821 AFA30014 8FAD0024 8FA30018 8FA4005C 10640005 02EDB821 1E00FFEA 8FAB001C 1000FFEF 8FA40018 24030001 A04301F8 8FBF004C 8FBE0048 8FB70044 8FB60040 8FB5003C 8FB40038 8FB30034 8FB20030 8FB1002C 8FB00028 03E00008 27BD0050 'getFPC 27BDFFF8 AFBF0004 00852023 03E42021 ACC40000 8FBF0004 03E00008 27BD0008 'pstring 27BDFFE0 AFBF001C AFB00018 00808021 00002021 3C059D00 24A507C4 27A60010 0411FFEF 00000000 8FA40010 3C029D00 8C42002C 0040F809 02042021 8FBF001C 8FB00018 03E00008 27BD0020 'main 27BDFFC0 AFBF003C AFB50038 AFB40034 AFB30030 AFB2002C AFB10028 AFB00024 00809021 00A08821 00C09821 00E0A021 00002021 3C059D00 24A50830 27A60018 0411FFD4 00000000 3C109D00 8E020090 8E230000 A043002E 8E020090 8E430000 A043002C 8E020090 8E630000 A043002D 8E020090 8FA30050 8C630000 A0430015 8E02003C 0040F809 240402F8 8E03008C AC620000 2403FFF5 A04301F9 8E030090 8E020010 8064002E 24050008 0040F809 00003021 8E030090 8E020010 8064002E 24050065 0040F809 00003021 8E030090 8E02001C 8064002E 0040F809 24050006 8E030090 8E020010 8064002C 24050008 0040F809 00003021 8E030090 8E020010 8064002C 24050065 0040F809 00003021 8E030090 8E02001C 8064002C 0040F809 24050006 8E030090 8E020010 8064002D 24050008 0040F809 00003021 8E030090 8E020010 8064002D 24050065 0040F809 00003021 8E030090 8E02001C 8064002D 0040F809 24050006 3C02BF81 8C44F220 7C84D800 3C030661 3463A053 1083000B 24020050 3C02BF81 8C43F220 7C63D800 3C020660 3442A053 00621026 24030050 2404000C 0082180B 00601021 3C039D00 8C630088 00431021 8C430000 24020064 54620007 00008821 3C02BF80 8C515830 8C525800 8C555840 10000003 3C029D00 00009021 3C029D00 8C420010 3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B 24040014 3C03BF81 8C64F220 7C84D800 3C030660 3463A053 00832026 24030014 24050003 00A4180B 00602021 24050008 0040F809 00003021 3C029D00 8C420010 3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B 24040014 3C03BF81 8C64F220 7C84D800 3C030660 3463A053 00832026 24030014 24050003 00A4180B 00602021 24050065 0040F809 00003021 3C029D00 8C420010 3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B 24040029 3C03BF81 8C64F220 7C84D800 3C030660 3463A053 00832026 24030029 2405000E 00A4180B 00602021 24050002 0040F809 00003021 3C029D00 8C420010 3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B 24040029 3C03BF81 8C64F220 7C84D800 3C030660 3463A053 00832026 24030029 2405000E 00A4180B 00602021 24050065 0040F809 00003021 3C029D00 8C420010 3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B 2404000E 3C03BF81 8C64F220 7C84D800 3C030660 3463A053 00832026 2403000E 24050019 00A4180B 00602021 24050008 0040F809 00003021 3C029D00 8C420010 3C03BF81 8C65F220 7CA5D800 3C030661 3463A053 10A3000B 2404000E 3C03BF81 8C64F220 7C84D800 3C030660 3463A053 00832026 2403000E 24050019 00A4180B 00602021 24050065 0040F809 00003021 3C02BF81 8C43FA84 24040001 7C831804 AC43FA84 3C02BF81 8C43FB04 24040003 7C831804 AC43FB04 3C02BF80 34038060 AC435800 24030002 AC435830 24030C00 AC435840 16200005 3C109D00 8C515830 8C525800 8C555840 3C109D00 8E030090 8E02001C 8064002E 0040F809 24050006 8E020004 0040F809 24042710 8E030090 8E02001C 8064002E 0040F809 24050005 8E020004 0040F809 24042710 8E030090 8E02001C 8064002E 0040F809 24050006 8E020004 0040F809 24042710 24040021 0411FCD8 00000000 24040006 0411FCD5 00000000 24040014 0411FCD2 00000000 24040020 0411FCCF 00000000 2404000C 0411FCCC 00000000 24040021 0411FCC9 00000000 92840000 0411FCC6 00000000 24040020 0411FCC3 00000000 8E020090 90420015 30420001 10400008 3C029D00 8C430094 24040054 AC640000 8C420098 24030030 10000007 AC430000 8C430098 24040054 AC640000 8C420094 24030030 AC430000 8FA50018 3C029D00 8C430048 3C049D00 24840228 00852021 AC640000 8FA50018 8C43004C 3C049D00 24840470 00852021 AC640000 8FA50018 8C430084 3C049D00 248400CC 00852021 AC640000 8C430048 8C440094 8C860000 8C420098 8C470000 AFA00010 8C620000 00002021 00002821 24C6FFFF 0040F809 24E7FFFF 3C02BF80 AC515830 AC525800 AC555840 3C049D00 24840E00 0411FE71 00000000 8FBF003C 8FB50038 8FB40034 8FB30030 8FB2002C 8FB10028 8FB00024 03E00008 27BD0040 '.rodata 'startup 494B4F4E 31313541 72642030 72657669 616F6C20 0D646564 0000000A End CSUB |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2927 |
This 'message' on reboot is very useful while 'debugging', however, in an end application it can be 'annoying' to see this 'techie' message. Is there a way to have a 'switch' to enable/disable this startup message e.g. is there something in the CSUB that if changed will prevent/show the message. Just asking as you may simply say change a couple of values in your 'code' which I can simply do ![]() |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10066 |
Just patch out the message at the bottom of the CFunction with an equivalent number of 00000000 'startup
00000000 00000000 00000000 00000000 00000000 00000000 00000000 |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1965 |
I get an error Pin 4 reserved on Startup. I have used these pins NOKIA5110(5,4,2,&HBb,1). Matherp's example uses NOKIA5110(2,3,4,&HBb,1) but pin 3 is SPI out which I have connected to DIN on the display. Where am I going wrong. Paul. Edit. I'm using a 28 pin chip with V5.1 "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10066 |
The load program can only be run once as it allocates the pins and then you get "reserved" errors Start with a clean MM. LIBRARY DELETE, NEW, no OPTIONS (use the !!!!! to do this) Then upload the driver and reboot - nothing else. At this point the driver will work if your pinout is correct. You never need to call anything again to do with the driver - just use the normal graphics routines My pinout was for a 44-pin where pin 3 is not allocated to SPI but your pins should be fine |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2927 |
@palcal To check which pins are in use, type OPTION LIST and see where/if Pin 4 is used. Did you save as a LIBRARY (possibly with matherp's pins) but not yet delete it?? If so, it will be 'reserving' pin 4 and hence the message! WW |
||||
Page 1 of 2 ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |