Search Results - Proton BASIC community web site


Search:

Type: Posts; User: charliecoultas

Page 1 of 5 1 2 3 4

Search: Search took 0.06 seconds.

  1. Re: Anybody using ESP8266 with mobile phone

    Thanks Johan, that looks interesting.
  2. Re: Anybody using ESP8266 with mobile phone

    Thanks Johan.
  3. Re: Anybody using ESP8266 with mobile phone

    Many thanks. I really don't want to use Arduino or MicroPython, just a PIC and Proton. I am fairly sure that somebody on this forum must have done this already. It's the dialogue with the ESP8266...
  4. Anybody using ESP8266 with mobile phone

    We are trying to add a feature to our radio simulator at the museum: on entering a suitable code on the simulator, the customer uses their mobile phone to connect to an ESP8266 in the simulator. The...
  5. Re: Flash Memory tables in Proton and Proton24

    Good work Les, a very practical solution, as always.

    Charlie
  6. Re: How do you drive an inkjet printer via USB?

    I got a cheap thermal printer and it does the job perfectly. Thanks Ken and others for your help.
    I've written a short piece about it in the Wiki:

    Wiki/Application Notes/Thermal Printer Notes.
    ...
  7. Re: Any boffins know about moving water with an electromagnetic field?

    Hi Tim

    This problem of yours reminds me of a long-term itch I've had: The BBC Radio 4 channel (198khz) also carries the time, date plus lots more info for night storage heater control in people's...
  8. Re: Any boffins know about moving water with an electromagnetic field?

    Tim

    Like you, and many other folk on this forum, I love the challenge of trying solve difficult problems. (In my case it comes from having a Mum and Dad who thought I "could do better". The result...
  9. Re: Any boffins know about moving water with an electromagnetic field?

    I worked on a system for detecting the amount of smoke in a diesel exhaust (pipe was 10" dia) which sounds similar. We shone a beam of green LED light across the flow of gas and measured the amount...
  10. Replies
    4
    Views
    250

    Re: 4 Byte floats to 2 byte floats

    Will the integer value of the 32 bit float fit into 16 bits? If so then INT16BITS = FLOAT32BITS should do the trick?
  11. Thread: Hello !

    by charliecoultas
    Replies
    7
    Views
    360

    Re: Hello !

    Hi Fanie

    Good to hear from you. How are things down in SA?

    Charlie
  12. Replies
    3
    Views
    634

    Re: 16 bit Pic choice for datalogger

    I wanted a fast chip with both large program and RAM space for my 1960's computer emulator. I chose the dsPIC33EP512GP806 and it turned out to be a good choice. 140Meg clock, 52K of RAM, plenty of...
  13. Replies
    14
    Views
    528

    Re: AC Electronic Load

    High power loads seem to be popular Ken, and I think it's the electric car brigade that want high power AC loads, to simulate an electric car charging unit. I think that's what our experiment was...
  14. Replies
    14
    Views
    528

    Re: AC Electronic Load

    Hi David

    It was really a "proof of concept" that we were after. It's up to the customer now if he wants to go further.

    I must have been thinking about arc welding, of course, spot welding thin...
  15. Replies
    14
    Views
    528

    Re: AC Electronic Load

    You can weld with 100V and 5 amps? We tested the idea of a bridge in front of a DC electronic load this morning and it worked as expected. n the photo, the AC source (bottom right on photo)was...
  16. Replies
    14
    Views
    528

    Re: AC Electronic Load

    Thanks David, good thinking.
  17. Replies
    14
    Views
    528

    Re: AC Electronic Load

    David, Ken

    Thanks, that helps. The DC electronic load is a customer requirement so I have no choice there. I was half expecting you to come back with some fundamental reason that I hadn't thought...
  18. Replies
    14
    Views
    528

    AC Electronic Load

    I have a requirement for an AC electronic load, up to several kilowatts.

    Have any of you power guys ever experimented with a full wave rectifier in front of a DC electronic load? Apart from some...
  19. Re: Perhaps one small step to popularise Proton

    I first came across the original compiler in an advert in an electronics magazine. It looked simple, a digital pot controlled by 16x84 PIC (it was a very long time ago). I wrote to a fellow at...
  20. Re: 12F1840 and 16F18877 internal oscillator

    No.

    Charlie
  21. Re: Program not moving to next function

    Click on the link: http://www.protonbasic.co.uk/content.php/4397-Large-Buffer-Async-Receiver-Routine

    It will take you to an article about async buffering.

    Charlie
  22. Replies
    16
    Views
    2,223

    Re: HX711 Erratic Calibration

    Nobody here will laugh at you, we've all done similar things. Thanks for telling us that you've fixed the problem.
    Would you consider writing up your project, it may well help others who are using...
  23. Replies
    4
    Views
    320

    Re: Anybody used SSH1106 OLED display?

    It's work just fine, many thanks Johan.

    Charlie
  24. Replies
    4
    Views
    320

    Re: Anybody used SSH1106 OLED display?

    Thanks Les, Johan

    I'll give it a try tomorrow. Much appreciated.

    Charlie
  25. Replies
    4
    Views
    320

    Anybody used SSH1106 OLED display?

    I bought some nice 1.3" OLED displays in the hope that they were SSD1306. They aren't. But the display shows signs of trying to work.
    Has anybody used these yet? And if so, what changes need to be...
  26. Re: Program not moving to next function

    I wrote something for the WiKi about this:

    http://www.protonbasic.co.uk/content.php/4397-Large-Buffer-Async-Receiver-Routine
  27. Replies
    7
    Views
    430

    Re: Strange behavior with Procedure

    Bob

    I always wrongly assumed that HRSout data+128 would set the top bit of "data" and send one char. It didn't, it sent two chars: data followed by 128.
    Could this be the problem? Perhaps that...
  28. Re: forum obsolete - no more compiler updates here?

    I'm with John, thanks Les.
    Charlie
  29. Replies
    9
    Views
    1,079

    Re: I2C serial display

    Bob

    This is what I use, if it's any help:

    Device = 24HJ128GP502
    Declare Xtal = 79.23
    PLL_Setup(43, 2, 2, $0300)

    Then at the end of the code:
  30. Re: How do you drive an inkjet printer via USB?

    Thanks Teo, what an interesting product. I have decided to go with a cheap thermal printer but the product you mention looks promising. There is a lot of information in the advert, and I suspect that...
  31. Re: How do you drive an inkjet printer via USB?

    Thanks Ken, that's useful info. I don't know why I didn't think of this before. It will be quite a short print so your comments re heating up make a lot of sense. In fact, another print cannot happen...
  32. Re: How do you drive an inkjet printer via USB?

    Thanks again guys. I searched online for printers and up came some thermal ones. As Ken suggested, these look very good, and cheap, and thanks for the feedback Ken, very reliable. I have ordered one...
  33. Re: How do you drive an inkjet printer via USB?

    Les, Bob, Rick

    Thanks for the replies. Centronix would have fitted the bill perfectly! I don't particularly want a USB interface, I just assumed that all printers these days only had USB as a way...
  34. How do you drive an inkjet printer via USB?

    i have a requirement to drive a cheap printer from a PIC (8 or 16 bit). Does anybody know how to do it? RS232 to USB is no problem but I have a feeling it may not be too easy. It is for an exhibit at...
  35. Replies
    8
    Views
    573

    Re: Quirks in SN75176 transceiver

    Sounds a good plan, I've got my fingers crossed.

    Charlie
  36. Replies
    8
    Views
    573

    Re: Quirks in SN75176 transceiver

    Something like this perhaps:

    If RCSTA1.1 = 1 Or RCSTA1.2 = 1 Then ;deal with any overrun error, shouldn't happen
    RCSTA1.4 = 0
    Nop
    RCSTA1.4 =...
  37. Replies
    8
    Views
    573

    Re: Quirks in SN75176 transceiver

    Not sure if this will help but I had a similar thing. It was caused by either a framing or overrun error in the 18F26K22 usart receive code. I wasn't dealing with this (because I thought it would...
  38. Replies
    5
    Views
    630

    Re: How many people use Proton basic

    Around eight of the exhibits in our gallery (The Tunny Gallery) at the National Museum of Computing at Bletchley Park have a PIC running Proton somewhere inside them.
    It's a standing joke within our...
  39. Re: problem with Interrupt and MCLR 18F4550

    You have a label "main" but it is not in the source.

    Charlie
  40. Poll: Re: About deleting accounts due to inactivity beyond three months.

    I'm in for a membership fee.
    Charlie
  41. Replies
    4
    Views
    1,105

    Re: Proton24 Compiler - Parameterising 'Dim abc As code ='

    Many many thanks Les, that fits the bill exactly!

    Charlie
  42. Replies
    4
    Views
    1,105

    Parameterising dim abc as code =

    I want to do this:

    dim name as string * 10

    dim fred as code = as byte $12, $12 etc
    dim jack as code = as byte $21, $22 etc


    name = "fred", 0
  43. Replies
    8
    Views
    1,820

    Re: Fast and compact driver for 1306 ILED

    Thanks Flosi, very useful.

    Charlie
  44. Replies
    15
    Views
    2,052

    Re: Font data table for 8x8 dot matrix

    I think height and width are fixed, each character is the same height and width as all the others.

    Charlie
  45. Re: WooHoo, my first blinking LED on a PIC24

    Well done Bob. You'll be delighted with the 16 bit jobbies, they are fast and Proton seems a lot easier with them (procedures help a great deal). I have just about finished an emulator for a 1960's...
  46. Re: Proton Compiler LED Linearisation using an AntiLog algorithm

    You are welcome and thanks for the feedback. There are many people on this forum who are happy to help.

    Best regards
    Charlie
  47. Replies
    8
    Views
    893

    Re: Happy birthday Rick (rcurl)

    "There was a begin and there will be an end. " Everything has an end, except the sausage, which has two.

    Happy birthday Rick.
    Charlie
  48. Re: Software solution to the flickering LED problem

    Gosub is short for "go and perform a subroutine". When the subroutine is finished, it "Returns" to the address given in the Gosub command. This means that a subroutine (Pot_ADC) can be called from...
  49. Re: Software solution to the flickering LED problem

    Hi SebaG

    In your routine Main, you GoTo Pot_ADC but then at the end of Pot_ADC you Return! Return goes back to where a Gosub was used, you haven't used Gosub. Look in the manual at Gosub, Return....
  50. Replies
    13
    Views
    1,728

    Re: dsPIC33 can't get USART to receive

    Good idea John, thanks!
  51. Replies
    13
    Views
    1,728

    Re: Proton24 Compiler. Flash memory Data Tables reading

    Thanks Les. Of course! Looking up an entry of Dim As Code makes a great deal of sense, I never twigged. So don't bother looking at LOOKUPL Les.

    I am using Dim As Code a great deal in the emulator...
  52. Replies
    13
    Views
    1,728

    Re: dsPIC33 can't get USART to receive

    The emulator works really well! I expected many more problems than actually cropped up. But there is one thing that I have had to work around:

    LOOKUPL goes wrong when it is sitting above 64K. It...
  53. Replies
    8
    Views
    1,820

    Re: Fast and compact driver for 1306 ILED

    Good work Flosi, I am sure many of us will find it useful. Thanks.

    Charlie
  54. Re: Railroad train model switches pulse command pic16f876 and pcf8574p

    Hello Rleg

    You haven't told the compiler which device (PIC) you are using. Put this as the first line of your program:

    Device = 16F876

    Otherwise the compiler assumes you are using a 18F25K20...
  55. Replies
    29
    Views
    2,205

    Re: 4 Hex values to decimal float

    It's coming along really well thanks Les. I hope it will run its first program tomorrow - a prog that tests all the instructions and floating point operations. The Elliott 803 has a floating point...
  56. Replies
    29
    Views
    2,205

    Re: 4 Hex values to decimal float

    Just to add this: I have used procedures all the way through my 803 emulator and they are wonderful. The ability to pass and receive parameters make life a lot easier.

    Charlie
  57. Replies
    13
    Views
    1,728

    Re: dsPIC33 can't get USART to receive

    Good stuff Les, many thanks. Happily plodding along now. Wow, 70MIPs doesn't half rattle through code fast!

    I reckon that this chip is around 35,000 times as fast as the machine I am emulating,...
  58. Replies
    13
    Views
    1,728

    Re: dsPIC33 can't get USART to receive

    Thanks Les. That was the problem, all the ports are initially set to analog. ANSELB = 0 did the trick. Your code is useful, makes a lot of sense.
    I believed that the compiler set everything to...
  59. Replies
    13
    Views
    1,728

    Re: dsPIC33 can't get USART to receive

    Thanks Les. I tried your suggestion, no go I'm afraid. Below is the code.


    Device = 33EP512GP806
    Declare Xtal = 140.03
    ...
  60. Replies
    13
    Views
    1,728

    dsPIC33 can't get USART to receive

    The attached code is a very stripped down version of my latest code. It transmits from USART1 without any problem. But it won't receive. I can see a character going into pin RPI41 (PORTB.9) on a...
  61. Re: Whats the latest version of compiler

    Thanks Les, I have the latest.
  62. Whats the latest version of compiler

    Sorry if this is a stupid question, but where can I find the latest vsn of the compiler? I can see versions dated Dec 2019 but surely there has been an update since?

    Charlie
  63. Replies
    29
    Views
    2,205

    Re: 4 Hex values to decimal float

    Sorry to jump in, but what device is providing this "distance"? Is it a laser ranging type device?

    Charlie
  64. Thread: Hc-12

    by charliecoultas
    Replies
    18
    Views
    2,907

    Re: Hc-12

    Thanks George.
  65. Thread: Hc-12

    by charliecoultas
    Replies
    18
    Views
    2,907

    Re: Hc-12

    Yes, I am having a lot of fun with HC-12. I send RS232 data here and there in the house for various purposes and HC-12 handles it very well indeed. George T said how good they were I think, thanks...
  66. Re: dsPic33EP SPI interface DWM1001 Module

    My mistake Les. The 24HJ128GP502 is 28 pin and doesn't have a PORTC. I am using a 24HJ128GP504 which does have PORTC as its got 44 pins.
    i had forgotten this and was trying to use PORTC on the 28...
  67. Re: dsPic33EP SPI interface DWM1001 Module

    Ah yes, as you say, some peripherals cannot be mapped.

    Have you ever tried to use PORTC on a 24FJ128GP502? Proton doesn't seem to know about PORTC. I think MicroChip have a plan to confuse the...
  68. Replies
    39
    Views
    4,235

    Re: Les's WS2812 code

    That's what I did, but Les's code doesn't do that (the version I have, that is).
  69. Re: dsPic33EP SPI interface DWM1001 Module

    Just a thought: have you set the SPI connection to pins using Peripheral Port mapping? I'm not sure if SPI is brought out to pins without you mapping it.
    (Sorry if I'm teaching Grandma to suck eggs....
  70. Replies
    39
    Views
    4,235

    Re: Les's WS2812 code

    I used Les's code for these devices with great success. But sometimes one LED would go to the wrong colour, most of the time it was ok. After a lot of messing about, and while doing something else...
  71. Replies
    29
    Views
    2,529

    Re: Peripheral Pin Select Module how to

    Thumbs up Les!!!
  72. Replies
    6
    Views
    1,279

    Re: 64 bit floating point proglem

    I always think that some of these type of events are staged, but surely not all!

    Re Toyota: I can confirm that a Toyota Supra, about 1990 vintage, with not enough water in its radiator, driven at...
  73. Replies
    29
    Views
    2,529

    Re: Peripheral Pin Select Module how to

    (I promised to shut up but this is not a problem). I can solder TQFP44 no problem but your offer will be gleefully accepted. I'll send the Gerbers off today and should get the boards in a couple of...
  74. Replies
    29
    Views
    2,529

    Re: Peripheral Pin Select Module how to

    Sorted, thanks Les. I'll shut up for a while now.

    Charlie
  75. Replies
    29
    Views
    2,529

    Re: Peripheral Pin Select Module how to

    Sorry to be a pain Les, but

    $define In_Fn_U1RX
    $define IN_PIN_RPI41
    $define Out_Pin_RP100


    PPS_Unlock()
    PPS_Output(Out_Pin_RP100, Out_Fn_U1TX)
    pps_input(IN_PIN_RPI41, In_Fn_U1RX)
  76. Replies
    29
    Views
    2,529

    Re: Peripheral Pin Select Module how to

    That's great Les, thank you so much. There are quite a few hurdles in this project but you've just solved one of them for me.
    Next, get a PicKit4, order some PCBs and a couple of dsPIC33EP512GP806...
  77. Replies
    29
    Views
    2,529

    Re: Peripheral Pin Select Module how to

    I will used RF4, RP100 as output Les, pin 31 on the 64 TQFP. My mistake (one of them!) was to read the pin numbers as 140, 141 etc instead of I4o, I41 ...

    Ploughing through the DEFs file reveals...
  78. Replies
    29
    Views
    2,529

    Re: Peripheral Pin Select Module how to

    Thank You Les. As I get older, life seems to get more and more complicated.

    You're a star.

    Charlie
  79. Replies
    29
    Views
    2,529

    Re: Peripheral Pin Select Module how to

    George

    Can you help me to find the MC device file for dsPIC33EP512GP806 please? There is stuff missing from the DEFS file and I think it can only come from Microchip. It is for Peripheral Pin...
  80. Replies
    6
    Views
    1,279

    Re: 64 bit floating point proglem

    Thanks Les. That's useful to know. I tried "Hrsout bin8 Mydouble.byte0" but it didn't work.

    Sorry to hear about your car. I've had a few Toyota's and they've been OK.

    Best
    Charlie
  81. Replies
    6
    Views
    1,279

    Re: 64 bit floating point proglem

    SOLVED. The trouble, as Fani once put it, was between the chair and the keyboard.
  82. Replies
    13
    Views
    1,108

    Re: Resistor divider madness

    Tim

    Are these values with a DVM or an ADC channel?

    I reckon that 2.62V across two series resistors will give a current of 2.62/168 = 0.0156mA
    And 0.0156mA flowing in a 68K resistor will gives...
  83. Replies
    6
    Views
    1,279

    64 bit floating point proglem

    For my Elliott 803 emulator, I have written code to convert from its floating point format (1 sign, 9 exponent, 28 mantissa) into IEEE754 and it works very well. I do a calculation using Les's 64 bit...
  84. Replies
    68
    Views
    5,928

    Re: Positron and Positron16 dev boards

    Thanks Tim, Les. I have spoken to Evan about Pickit+ but that sdPIC device isn't on their current list. I suspect that the Pickit2 does not have enough on-board memory to handle a device with 512K of...
  85. Re: 18F25K22 PortB interrupts help please

    I used the code below successfully:
    INTCON.3 = 1 ;enable int on RB4-7 change
    INTCON2.7 = 0 ...
  86. Replies
    68
    Views
    5,928

    Re: Positron and Positron16 dev boards

    That's useful info Jim. I am forging ahead with the dsPIC33EP512GP806 but the next problem is programming it. My Pickit2 doesn't know about it and I am nervous about buying a PicKit4.

    How do you...
  87. Replies
    2
    Views
    762

    Re: Peripheral Pin Remapping

    Thanks Les, I'll investigate the \Defs for that device. It is incredible how complicated Microchip make things, and also incredible how you manage to wrestle sense out of most of it.

    Cheers...
  88. Replies
    2
    Views
    762

    Peripheral Pin Remapping

    Guys

    I need a little help. I get an error "COUT_PIN_RP140 Not found" and
    "CIN_PIN_RP141 Not found" with this setup:

    Device = 33EP512GP806 ;52K ram

    Declare...
  89. Replies
    68
    Views
    5,928

    Re: Positron and Positron16 dev boards

    Thanks Les, I am more confident now.
  90. Replies
    68
    Views
    5,928

    Re: Positron and Positron16 dev boards

    Jim, is this correct: the ram in an EP series starts at 4K and is then continuous, up to a total of 52K for the 33EP512GP806. If the Wreg accessing an address top bit is set (>32K) then the ...
  91. Replies
    68
    Views
    5,928

    Re: Positron and Positron16 dev boards

    Naughty boys! I did something for a certain games console but if I confess to it here you might not see me again!

    Les: Thank you so much, I will try that when I get the chip. I have worked out...
  92. Replies
    68
    Views
    5,928

    Re: Positron and Positron16 dev boards

    Hi Jim

    You doing some fascinating stuff. Some time ago I wrote an emulator for the Elliott 893, a second generation transistor machine from the 1960's. I used a 24HJ128GP502 and an external sram....
  93. Replies
    22
    Views
    2,319

    Re: RAM size of 24EP512GP806

    To add your message Les, some of the algorithms that were devised and used on Colossus are still classified. The world has moved a long, long way since 1943-5 when Colossus was doing its stuff, but...
  94. Replies
    22
    Views
    2,319

    Re: RAM size of 24EP512GP806

    Disculpas!
  95. Replies
    22
    Views
    2,319

    Re: RAM size of 24EP512GP806

    They have named a street near to Bletchley Park after him, and Tommy Flowers and a few of the other significant people during world war 2.
    What US state are you in?

    Charlie
  96. Replies
    22
    Views
    2,319

    Re: RAM size of 24EP512GP806

    The 1960's computer that I am emulating has 8192 "words", each 40 bits long. This is the whole memory, apart from magnetic film (mag tape) there is no other memory. I have already got an emulation...
  97. Replies
    22
    Views
    2,319

    Re: RAM size of 24EP512GP806

    We are all looking forward to Positron! I need more than 50K of RAM, not flash. I am emulating a 1960's computer that had 8192 words of 40 bits, which is just over 40K bytes. I have done an...
  98. Replies
    22
    Views
    2,319

    Re: RAM size of 24EP512GP806

    Les, John

    Many thanks for your replies. The reason I wanted the exception flags is that the 803 emulator I have written needs to run the diagnostic software for the original Elliot 803B computer,...
  99. Replies
    22
    Views
    2,319

    Re: RAM size of 24EP512GP806

    Many thanks John, that's very encouraging. Do you check for overflow and other FP exceptions?

    I am updating my Elliott 803 emulator because I just can't get the floating point right (doing it the...
  100. Replies
    22
    Views
    2,319

    Re: RAM size of 24EP512GP806

    One further question Les, is the 64 bit floating point working in Proton24?
    I get an error if I refer to the fp overflow flag: Symbol FpOverflow = _FP_FLAGS.1
  101. Replies
    22
    Views
    2,319

    Re: RAM size of 24EP512GP806

    Thanks Les, no rush.
  102. Replies
    22
    Views
    2,319

    RAM size of 24EP512GP806

    On discovering that RAM sizes up to 96K now seem possible, I would like to use a 24EP512GP806 which has 52K bytes of ram.

    Trying this:

    Device = 24EP512GP806
    stop

    It compiles but announces...
  103. Re: PIN used for SPI: how to define them for pic18f25k20?

    Hi Broderic

    Look in the datasheet under PORTS. In the section for PORTC you will find the SPI pins.

    Charlie
  104. Replies
    6
    Views
    855

    Re: Compiler update coming soon

    Thanks Les. You know how much we all appreciate your tireless work on the compiler but it doesn't hurt to remind you.

    Cheers
    Charlie
  105. Replies
    68
    Views
    5,928

    Re: Positron and Positron16 dev boards

    Good stuff Les! I'm in, happy to pre-pay.

    Charlie
  106. Replies
    11
    Views
    1,344

    Re: Procedure where to place them?

    I always put my last and no problems so far.

    Charlie
  107. Replies
    11
    Views
    2,862

    Re: PORTA.6 and PORTA.7 16F628A

    Jan

    Don't be ashamed, we've all done it and some of us keep doing it!

    Best
    Charlie
  108. Re: Has anyone tried an LCD with a NT7605 controller?

    Cheers Rick.
  109. Re: Has anyone tried an LCD with a NT7605 controller?

    I haven't tried it Rick but it looks the same as far as programming goes. Looks nice too!

    Charlie
  110. Replies
    26
    Views
    2,377

    Re: Coronavirus Alert!!

    The other day there was a letter to the editor of The Times, from a woman, that went like this:

    "This virus has a lot to answer for. There is a strange man wandering around my house who says he...
  111. Replies
    20
    Views
    1,767

    Re: Current transformer AC - DC

    If the input goes negative, which it does, then I'm afraid you will need a neg rail fo the op-amp.
    Glad it seems to be coming together well.

    Charlie
  112. Replies
    26
    Views
    2,377

    Re: Coronavirus Alert!!

    Would it help to talk about it George?

    Charlie
  113. Replies
    20
    Views
    1,767

    Re: Current transformer AC - DC

    What are those two capacitor-like devices on the input lines?

    I think you will still have to smooooth the output because it will be all positive half-cycles.

    Charlie
  114. Replies
    20
    Views
    1,767

    Re: Current transformer AC - DC

    Google for "Precision full wave rectifier circuit". I think this will get rid of the diode drops.

    Charlie
  115. Replies
    26
    Views
    2,377

    Re: Coronavirus Alert!!

    ... and murders.
  116. Replies
    26
    Views
    2,377

    Re: Coronavirus Alert!!

    Here in the UK everything except food shops are closed. And the food shops don't have much food due to people buying more than they need.

    Does anybody on the forum know the answer to this please:...
  117. Replies
    60
    Views
    7,484

    Re: Driver for ILI9341

    Thanks Flosi, can't wait to try it.

    Charlie
  118. Replies
    60
    Views
    7,484

    Re: Driver for ILI9341

    Cheers. You're not the only one...
  119. Replies
    60
    Views
    7,484

    Re: Driver for ILI9341

    Flosi

    I your excellent demonstration code you Toggle PORTC.2 every now and then. Can I ask why please?
    I am going to try the code but this has confused me somewhat.

    Charlie
  120. Replies
    60
    Views
    7,484

    Re: Driver for ILI9341

    Good work Flosi, I would think that many of our members will appreciate your determined efforts. Thank you.

    Charlie
  121. Replies
    142
    Views
    11,122

    Re: Proton PIC BASIC Compiler - ADS7846 TouchScreen Controller Library

    Indeed I aml. Thanks Flosi et l. I will write up my experiences with this display technique very soon but there is a project at the museum that is taking most of my time at the moment.

    Charlie
  122. Replies
    8
    Views
    1,888

    Re: Empty if..endif bug

    If I may add to Les's reply from a users viewpoint: this compiler is used by a very large community of forum members. Les is very responsive to ideas for improvements and reports of strange...
  123. Replies
    19
    Views
    2,579

    Re: error in lcd 16x2

    Can you try it on actual hardware Jose?

    Charlie
  124. Replies
    19
    Views
    2,579

    Re: error in lcd 16x2

    Your code shows the four data bits to the LCD as RB4,5,6 and 7. But the diagram shows RB3,5,6 and 7.
  125. Re: Proton Compiler 24-bit Long Integer Variables to be added soon!

    Nice work Les, thanks.
    Charlie
  126. Replies
    27
    Views
    11,940

    Re: Read HX711

    Is it SPI George?
  127. Replies
    2
    Views
    1,516

    Re: ds3231 Alarm mask

    Well done. And thanks for posting the solution, it probably will help others.

    Charlie
  128. Replies
    9
    Views
    1,207

    Re: RF modules recomendations?

    George had a lot of success with HC-12 modules. I think they are 434Mhz but they look very simple: RS232, 9600 by default, cheap.

    Charlie
  129. Replies
    16
    Views
    3,895

    Re: NEC Protocol IR remote control decoder

    Now that's a nice picture you paint John. If Fanie could provide the aerial drone video photography (complete with rapid fire machine guns) then it would be quite a match. Sorry for drifting this...
  130. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    The postman finally cometh and I now have a display with touch that works! Other pressures mean that I can't do much at present and on Friday we go on holiday for two weeks - bummer. Thanks to...
  131. Replies
    16
    Views
    3,895

    Re: NEC Protocol IR remote control decoder

    I'll forward to seeing you Les. When you get a bit further South I'll take you round the National Museum of Computing at Bletchley Park. There is plenty there to tickle your old memories of how...
  132. Replies
    16
    Views
    3,895

    Re: NEC Protocol IR remote control decoder

    If I may say that we are also proud of you Les!

    The compiler is a fantastic piece of work of which you should indeed be very proud.

    AngryGorilla's code is well structured, indented to show...
  133. Replies
    10
    Views
    1,252

    Re: 12 to 24v step up efficency

    It nice to actually see one of your projects Tim. As David says, you get to do some fascinating stuff.
    Good luck with this one.
    Charlie
  134. Replies
    142
    Views
    11,122

    Re: Proton BASIC Compiler - Software SPI interface to an ADS7846 touchscreen controll

    Glad you're making progress John. I am intending using one SPI channel for both the display AND the touch. And selecting which device using their chip enables. Why are you going for one hardware SPI...
  135. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    I understand Flosi. I am taking a different route: I am looking at the touch chip every 100mS via a timer interrupt, and if I see a touch, I look a lot more frequently and deal with it. But i can't...
  136. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Does that mean that you have the display on SPI1 and touch on SPI2? Surely both the touch and the display can run at the same fast rate?

    Charlie
  137. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Thanks Les, that makes a lot of sense. Indeed, to put a misleading"max" rate on the first page of the data sheet is a bit stupid. It fooled me.

    Flosi seems to be making good progress and John is...
  138. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Good luck with the bowls John. Do they allow over-arm bowling?

    I took the touch chip off my display board and put the ohm meter between X+ X- Y+ and Y-. All open circuit! No wonder the damn thing...
  139. Replies
    142
    Views
    11,122

    Re: Proton PIC BASIC Compiler - ADS7846 TouchScreen Controller Library

    Yes John, I wondered that. Perhaps if a display assembly fails its connections to the touch area, they flog it off and don't bother fitting the chip.
    The photo of mine on BangGood had the chip, the...
  140. Replies
    142
    Views
    11,122

    Re: Proton BASIC Compiler - Software SPI interface to an ADS7846 touchscreen controll

    Many thanks Les, much appreciated. My problem seems to be either the actual display or the touch chip.
    Even slowing the clock right down makes no difference. Probing around with the scope - I can't...
  141. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    I just fell over the Symbol and $Define issue. But I am still struggling:

    I can see the 8 bit byte going into the touch chip. It is asking to measure the Z axis and that looks good. The clocks are...
  142. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Les, Flosi and John

    Thanks. I understand all the comments and will now try again (tomorrow). One of the problems is that I am using 18F46K22 and the Amicus18 SPI rtns use a different cpu. BUt the...
  143. Replies
    142
    Views
    11,122

    Re: Proton PIC BASIC Compiler - ADS7846 TouchScreen Controller Library

    Thanks Les. I have tried your amended .inc file and things look a bit better. But the /CS for the touch chip stays low all the time. I think the problem is to do with the SPI routines - which are...
  144. Replies
    142
    Views
    11,122

    Re: Proton PIC BASIC Compiler - ADS7846 TouchScreen Controller Library

    Thanks Les. Does the ADS chip need to be initialised before it will generate an interrupt?
  145. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Thanks Flosi but the problem is more basic : I can't get the touch chip to generate an interrupt when I touch the screen.
    Should it pull its INT pin low when the screen is touched? If so, does it...
  146. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Dear Les

    John Drew and I are trying to implement your GetTouch.inc code. A question: how do you initialise the ADS7846 touch controller please?

    Does it need setting up so that it will pull its...
  147. Replies
    6
    Views
    793

    Happy New Year

    Happy New Year everybody.

    Charlie
  148. Replies
    11
    Views
    1,243

    Re: Merry Christmas everyone

    Happy Christmas from the United Kingdom. Not a bad day here down in the south east of England but our thoughts are with you guys in Australia and the terrible bush fires.

    Charlie
  149. Replies
    60
    Views
    7,484

    Re: Driver for ILI9341

    Thanks Flosi. I'll see if I can adapt Les's code.

    Charlie
  150. Replies
    60
    Views
    7,484

    Re: Driver for ILI9341

    Flosi

    What code did you use for the touch? I have some code from Les for the touch chip ADS7846, but my board has a XPT2046 chip.
    Les's code aliases to something in his ILI9340 code which I don't...
  151. Replies
    19
    Views
    2,288

    Re: Microcap now free

    It looks like a fantastic package, thanks for the tip. But I am beginning to doubt my prowess with modern technology:

    Yesterday I decided to clean the rear-view camera on my car, the picture was...
  152. Replies
    60
    Views
    7,484

    Re: Driver for ILI9341

    Mine are 3.3V with no touch chip. I accidentally put 5V on it a few times with the PicKit2 programmer: they lit up but didn't appear to work on 5V. But on returning to 3.3V all was well again. Phew!...
  153. Re: Symbol not previously defined - Another assemble error

    The "instability" you refer to is often due to MicroChip altering things and getting out of step with reality. Les does a sterling job on the compiler and quite a lot of this time is sorting out...
  154. Re: It's Christmas, how about a bit of giving?

    Done. Les is great, thank you Les. And thanks John for suggesting this.

    Charlie
  155. Replies
    13
    Views
    1,735

    Re: Proton review

    Nice work John.
  156. Replies
    8
    Views
    1,807

    Re: Christmas Lights

    Rick

    You cannot be series?

    Charlie
  157. Replies
    4
    Views
    1,123

    Re: Examining elements of a string

    I just tried this, and it compiles OK.

    Device = 18F26K22
    Declare Xtal=4
    Dim string1 As String * 32

    If string1 [1] = 61 Then GoTo xyz ' $61 = a
    xyz:

    BTW $61 is...
  158. Re: Tesla acquires Maxwell for dry electrode technology?

    Fascinating, thanks David.

    I am a little worried about the long term effects of charging an electric vehicle using "fast charging". I understand that fast-charging a battery shortens its life and...
  159. Thread: ch376

    by charliecoultas
    Replies
    14
    Views
    2,398

    Re: ch376

    That looks like a useful device. I think Les will be writing a driver for it when he gets the time.
  160. Replies
    60
    Views
    7,484

    Re: Driver for ILI9341

    I fell into the trap of forgetting that the SPI pins are hardware and not user-definable. PORTC.3 and 5 for 18F26K22.
  161. Replies
    60
    Views
    7,484

    Re: Driver for ILI9341

    3.3V/3.6V for everything George, I think. The 18F26K22 runs OK on 3.3V
  162. Replies
    7
    Views
    1,782

    Re: 1 Wire write - bit mode , no reset

    Did you recompile it, and then it didn't work? If so, which version of the compiler did you use?

    Charlie
  163. Replies
    60
    Views
    7,484

    Re: Driver for ILI9341

    Flosi

    Yes, the touch chip is missing. I found a photo online of the same display with the chip. It is a XPT2046, I have a couple and will try them when I get time.
    I was slightly put off by the...
  164. Replies
    60
    Views
    7,484

    Re: Driver for ILI9341

    3820

    Here is a photo of the unit that I have got working. The ZIP file contains a working example using this display and Flosi's recent code.
    I have tinkered a little with Flosi's code but only...
  165. Re: Phase offseting PWM to prevent noise on fans

    How about an inductor in the PWM/DC drive to the fans?
  166. Replies
    8
    Views
    1,684

    Re: 16f688 going to sleep issue

    Just enter the Proton command "Reset". This will effectively do a power-up-start.

    If xyz = abc then
    reset
    endif

    Charlie
  167. Replies
    12
    Views
    2,881

    Re: PPL setting for 18f27k42

    I tried to find the datasheet Flosi and failed. Either I'm getting too old to carry out a basic search or Microchip's website is useless.
  168. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Wow! I think that's it Bob. Many thanks.
  169. Replies
    20
    Views
    2,012

    Re: Fusion 360

    I don't know what it is. But if it's anything to do with "the cloud" then count me out.

    Charlie
  170. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Ha! As easy as that. Thanks Les.

    I think you wrote some code for a resistive touch screen but I can't find it. Any help appreciated.#

    Charlie
  171. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Thanks Les.
  172. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Thanks for the feedback Flosi, it's not a problem, your code works fine.

    Your code shows the 18F26K22 running at 80Mhz, how is that done? External crystal + PPL?

    Les, I love your Stylophone. I...
  173. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    The scrolling is great Flosi. I've now managed to get two different TFT modules I have bought working nicely.
    One small point, the scrolling always goes in the portrait direction, even if the screen...
  174. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Thanks Flosi.
  175. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Flosi

    What voltage are you using for the module you describe?

    Charlie
  176. Replies
    11
    Views
    1,246

    Re: serious problem with 4 bytes float

    Post your code and some kind member of this forum might be able to reduce it in size or point you in the right direction.

    Charlie
  177. Replies
    5
    Views
    1,185

    [OFFER] Re: Archos 9 PC Tablet

    Thanks Lester. I'll give it a good home.

    Charlie
  178. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Well that's gratifying. The only thing is, if you look on my photo at where the touch interface tracks go, they terminate on a chip that isn't there (the pads are there, but no chip, so no touch...
  179. Replies
    5
    Views
    1,185

    [OFFER] Re: Archos 9 PC Tablet

    I'll take it Lester, and pay for the postage. Shall I PM you my address?

    Charlie
  180. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Join the club! I had hoped to write an article for the Wiki showing (some of) the range of available modules, their controller type number and who had written some code to drive them. But it's...
  181. Replies
    60
    Views
    7,484

    Re: Driver for ILI9341

    Excellent! I'll try it out, thanks Flosi.

    Charlie
  182. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Thanks Flosi. I had wrongly assumed that all the Arduino style modules used the ILI9325 controller.

    Charlie
  183. Re: HAVING ISSUE WITH PROC USAGE project is high speed serial backpac

    The colon used to mean "end of statement", so you could put several statements on one line.
    I'm not sure if that still applies. This is OK:

    Case 5
    goto xyz

    Charlie
  184. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    I'm gradually getting further with these displays. Can somebody put me right on this issue please:

    I have bought a few OLED displays. One of the two Arduino-type displays works well with Les's...
  185. Re: HAVING ISSUE WITH PROC USAGE project is high speed serial backpac

    Xtal

    What PIC are you using?

    Charlie
  186. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    The example Les gives in the wiki is parallel. I've used it, it's fast and it worked first time for me.

    Charlie
  187. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    John:

    I am using Flosi's SPI code and the speed is fine. Clearing the screen takes about 0.4 seconds.

    Flosi:

    I have got a couple of OLED modules that claim to have touch, but I can't see any...
  188. Replies
    11
    Views
    1,523

    Re: SSD1306 lcd problem

    I've only used 64Mhz with these devices and not had a problem. However, I have bought a few of the bigger modules and I can't get one of them to work. It's an Aurduino-stype module with 8+8+6+6...
  189. Replies
    14
    Views
    6,055

    Re: SD File System revisited

    Nice work Alberto.

    Charlie
  190. Replies
    19
    Views
    1,745

    Re: One mans meat is another mans poison

    When I was feeling really down, and was asked if my glass was half full or half empty, I replied that my glass was broken.
  191. Replies
    11
    Views
    1,523

    Re: SSD1306 lcd problem

    If it's any help, I have four of these, all from the same place, and all four work OK. I am using Dompie's code as well.
    It's not a 5/3.3V issue is it? I use 18F26K22 64Mhz, 5V.

    Sounds like you...
  192. Thread: Hi All

    by charliecoultas
    Replies
    10
    Views
    1,219

    Re: Hi All

    It's good to know you're still around.

    Charlie
  193. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Teo

    Flosi's code will do BMP. I think this is the right place to find his code: http://www.protonbasic.co.uk/showthread.php/78176-Driver-for-ILI9341

    There is an example in the zipped file...
  194. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Les, George

    Is a "backpack" a device which sits between some "standard" software and a "non-standard" display module?
    So you could for example drive one the OLED 320x240 displays without having...
  195. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    G'day John

    That's the sort of thing I had in mind, but I'm not so sure that the different size displays all have a common controller.
    I will compile a list of modules and their controller names,...
  196. Replies
    8
    Views
    981

    Re: Strange compile for a 16F628A

    I just tried to compile your code and got an error because the label Isr is missing (On_Hardware_Interrupt goto Isr
    Where is the interrupt routine?

    Charlie
  197. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Flosi

    Yes, I found loads of them too and have ordered one that looks good.
    Good to hear about your update plans, nice work.

    SebaG

    That's a good forward plan. I will try to draw all the...
  198. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Flosi

    An SD socket and touch would be ideal for what I have in mind, I'll see if I can find the module you describe.

    Is there any chance that you could include vertical scrolling (in portrait...
  199. Replies
    21
    Views
    12,164

    Re: 3x4 alpha numeric keypad

    Fanie

    It's good to hear from you. How is the book coming along?

    Charlie
  200. Replies
    142
    Views
    11,122

    Re: Les's ILI9325 Wiki code

    Hi John. I wired up the module, ignoring CE, put Flosi's code in an 18F26K22 and bingo, it works.
    There was no data with the ILI1934 of course, but it looks a nice neat module. Mine only has 8 pins...
Results 1 to 200 of 1000
Page 1 of 5 1 2 3 4