Search Results - Proton BASIC community web site


Search:

Type: Posts; User: SimonJA

Page 1 of 5 1 2 3 4

Search: Search took 0.04 seconds.

  1. Select... Case not producing correct result

    I noticed this was not producing the expected result, I just thought I would post here before putting it on the anomaly section in case I'm doing something silly!



    Compiler version 3.7.3.6

    ...
  2. Replies
    14
    Views
    354

    Re: RTC accuracy and settings

    I do in fact use a gps module as the main clock source that all the sensors sync with but it would not be practical to put one on each sensor.

    I just need to be able to keep reasonably accurate...
  3. Replies
    14
    Views
    354

    Re: RTC accuracy and settings

    Yes it was running slow.

    I found a useful document Runtime Calibration of watch crystals (pdf). while I did get a bit lost on the procedures for calibration there is some interesting stuff in...
  4. Replies
    14
    Views
    354

    Re: RTC accuracy and settings

    Thanks David, I did a new test on a different board and that is much better laid out with the crystal rotated 45 degrees to the pic onto the corner pins with traces just over 1mm and the 0603 caps...
  5. Replies
    14
    Views
    354

    Re: RTC accuracy and settings

    I've also just noticed that I2C clock and data traces run close to the crystal on the underside of the board (my poor design), this is just a general development board that I was testing on and on...
  6. Replies
    14
    Views
    354

    Re: RTC accuracy and settings

    Thanks for the replies.

    The crystal I have is an Abracon ABS07-120-32.768KHZ-T it is a pretty small smt package mounted close to the pic, it is a good spec with +/- 20ppm tolerance. I did try...
  7. Replies
    14
    Views
    354

    RTC accuracy and settings

    Most of the pic24's I used come with a 'free' RTC so I thought I would take advantage of that with some sensors that I'm using.

    In order to avoid data collisions I thought I would sync all my...
  8. Replies
    3
    Views
    424

    Re: Eink serial displays

    I have just been thinking about some projects I'd like to work on in 2020 and an e ink display on Proton 24 is on my list!... But to answer your question: No, I've not done anything yet.

    I just...
  9. Replies
    34
    Views
    1,257

    Re: New Prusa mini 3D printer

    Here are some photos, the 3D model and the print in PLA.
    https://i.imgur.com/y0ze1AL.jpg
    https://i.imgur.com/QcJZUha.jpg
    https://i.imgur.com/zy5lxaS.jpg
    https://i.imgur.com/BwdsF5K.jpg...
  10. Replies
    34
    Views
    1,257

    Re: New Prusa mini 3D printer

    I started with PLA but have several rolls of different material, mostly PETG which seems to be a good all rounder, I've just started using it with generally good results so far.
  11. Replies
    34
    Views
    1,257

    Re: New Prusa mini 3D printer

    I just got myself a 3D printer, a Christmas present to myself. :friendly_wink:

    I've been on the verge of buying one for several years and Prusa had some nice Black Friday deals which finally...
  12. Thread: Fusion 360

    by SimonJA
    Replies
    20
    Views
    837

    Re: Fusion 360

    Tim

    I used to pay a fortune renting gas from BOC but quite a long time ago switched to a company that just charges a one off deposit and you only pay for refills after that, I have saved a huge...
  13. Replies
    19
    Views
    477

    Re: One mans meat is another mans poison

    I very nearly posted that exact same comment a while back, yes I feel the same.

    By the way did you hear the engineers version of the glass half empty, glass half full..... The glass is 50 percent...
  14. Re: Help with ppi and def files for 24FJ256GA704

    I think that is as far as I can go with this for now, I'm already in way over my head.

    Les, I don't know why you don't want to help with this, surely having this chip working would make Proton...
  15. Re: Help with ppi and def files for 24FJ256GA704

    Not much progress on this but I did try a compile on a 24EP128GP204 which does use EDS memory (thanks tumbleweed).

    I don't have any hardware to test this but compiling on this chip and looking at...
  16. Replies
    2
    Views
    257

    Re: List of Supported Chips

    Great thanks John, I thought it may help attract some non-users who might google support for a particular chip and otherwise come up with nothing.

    I'm sure it's not really noticed by regular...
  17. Re: Help with ppi and def files for 24FJ256GA704

    After just a little reading I see that 16 bit pics either use Program Space Visibility (PSV) or Extended Data Space (EDS), the 704 uses EDS

    I can't see anything in the ppi file that specifies...
  18. Replies
    2
    Views
    257

    List of Supported Chips

    I just noticed while looking through the list of supported devices on the website that there are many errors in the chip names.

    One example is all these names seem to be missing a P, eg...
  19. Re: Help with ppi and def files for 24FJ256GA704

    I think my problems at the moment are down to memory organisation, the 24FJ256GA704 uses extended data space, has different registers and a different way of addressing memory.

    It's getting a bit...
  20. Re: Help with ppi and def files for 24FJ256GA704

    So I managed to track down the problem or a problem.

    My code passes a string to a procedure and that causes the error.

    I made a simple program to show the problem:


    Main:
    HRSOut "this...
  21. Re: Help with ppi and def files for 24FJ256GA704

    I did some tests using Dim As Code, reading and writing and that works ok.

    There is something else with my code for the SSD1306 that doesn't run on this chip, not quite sure what yet but hope to...
  22. Re: Help with ppi and def files for 24FJ256GA704

    I have got I2C working now but hit another snag.

    For testing i2c I'm using an SSD1306 display as it would be nice to get that working.

    Looking at the i2c data on a logic analyser all the...
  23. Re: Help with ppi and def files for 24FJ256GA704

    Stephen I think you are right! It seems to be working.

    That was not how I thought the compiler worked.

    Thanks
  24. Re: Help with ppi and def files for 24FJ256GA704

    That does allow it to compile ok but looking at the ASM the i2c commands all use the I2C1CON register when this should be I2C1CONL.
  25. Re: Help with ppi and def files for 24FJ256GA704

    Les

    I expect you've seen this or one of the other posts on the problems with this chip.

    It would be good to get your opinion on this even if it's not something you want to fix. I understand...
  26. Re: Help with ppi and def files for 24FJ256GA704

    I think Les is the only one who can fix this now, thanks for your help.

    simon
  27. Replies
    19
    Views
    405

    Re: PicKit4, cosa ne pensate?

    Well I'm happy with it, I also have a 2 and 3, I moved on from the 2 as it didn't support the pic's I wanted to use, I now use the 4 simply because it's quicker than the 3.
  28. Replies
    19
    Views
    405

    Re: PicKit4, cosa ne pensate? PicKit4 What do you think?

    The MPLAM IPE is Microchip programming software, separate from the IDE.

    As far as I know it can't be used from within PDS but it is only an extra mouse click or two.
  29. Replies
    19
    Views
    405

    Re: PicKit4, cosa ne pensate? PicKit4 What do you think?

    I would get a Pickit 4, it is about the same price as a Pickit 3.

    I got it when it first came out and the device support was pretty bad but now it's much better.

    You can use it with MPLB IPE...
  30. Re: Help with ppi and def files for 24FJ256GA704

    Good thinking Gamboa, I had not thought to look at the asm, not that it means much to me anyway but all the references relating to the i2c operation in the code section use the I2C1CON register.
  31. Re: Help with ppi and def files for 24FJ256GA704

    I'm pretty sure that the i2c pins are fixed and not mappable with PPS.
  32. Help with ppi and def files for 24FJ256GA704

    I have been trying to get this pic working but can't go any further at the moment.

    I'd like to use i2c but as soon as I use any i2c commands I get an asm linker error about an undefined reference...
  33. Replies
    14
    Views
    192

    Re: Toner transfer made easy .....

    Oh the joys of making your own pcb's, ferric chloride stains in the new kitchen, struggling to drill holes with poor eyesight and breathing in the dust.

    After I started using the cheap Chinese pcb...
  34. Re: PIC24FJ256GA705 Family Devices Are They Fully Supported in Proton 24 ?

    As a next step I've been trying to get i2c working, so far without success.

    I get an ASM ERROR : linker Error when I compile, resource version (1.30) does not match...... undefined reference to...
  35. Re: PIC24FJ256GA705 Family Devices Are They Fully Supported in Proton 24 ?

    I have the USART working, happy days! Thanks for the help Gamboa.

    Now I have the USART working it will help testing everything else.


    Loannis

    I think most of the ppi and def files are fine...
  36. Re: PIC24FJ256GA705 Family Devices Are They Fully Supported in Proton 24 ?

    Thanks very much for that Gamboa.

    Having had a quick look I see that the inputs functions don't look complete compared to the data sheet and a few of the function names are not exactly the same.
    ...
  37. Re: PIC24FJ256GA705 Family Devices Are They Fully Supported in Proton 24 ?

    Hi Gamboa

    That sounds good!

    I made a board some time ago to test this chip (I'm using the 7040) I did get leds flashing but then realised the problems with the ppi and def files, I did make an...
  38. Re: PIC24FJ256GA705 Family Devices Are They Fully Supported in Proton 24 ?

    Hi Gamboa

    Did you manage to get anywhere with the PIC24FJGA705?

    Simon
  39. Re: PIC24FJ256GA705 Family Devices Are They Fully Supported in Proton 24 ?

    This looks to be a great chip, I bought some of the 24256FJ704 several years ago but could not get many of the peripherals working, there are some quite obvious errors in the ppi file and I tried...
  40. Re: Streaming the same audio track in real time to two different locations

    This is just a different way of looking at it:

    You could consider sending the music as an mp3 file before starting and just use a radio signal to sync it at the start.

    I should think that a low...
  41. Replies
    27
    Views
    2,463

    Re: Help With OLED Display / 128X64 SSD1306

    I got mine from AliExpress.

    I think there is an SPI version which may have the same model number and that has more connections.

    They are nice and cheap and come in different colours or even...
  42. Replies
    27
    Views
    2,463

    Re: Help With OLED Display / 128X64 SSD1306

    https://i.imgur.com/PHFekWR.jpg
  43. Replies
    27
    Views
    2,463

    Re: Help With OLED Display / 128X64 SSD1306

    It looks like the original code I posted will also print from a fixed width font file so that should be fine with any font generation software.

    Note that there are 4 "configuration" bytes before...
  44. Replies
    27
    Views
    2,463

    Re: Help With OLED Display / 128X64 SSD1306

    That's great to hear, I'm glad to help.

    I did print some battery symbols at one stage but I think I changed the way I did things after that, I will look at it again.

    When I did start working...
  45. Replies
    27
    Views
    2,463

    Re: Help With OLED Display / 128X64 SSD1306

    It should look like this:


    https://i.imgur.com/xiNdil4.jpg
  46. Replies
    27
    Views
    2,463

    Re: Help With OLED Display / 128X64 SSD1306

    I have tidied up this a little but there may be some redundant stuff in there.

    It was a bit half finished anyway but hopefully will be useful.

    You will need to modify the paths for the include...
  47. Replies
    27
    Views
    2,463

    Re: Help With OLED Display / 128X64 SSD1306

    Well that is not quite as good as it sounds...

    The variable width font files I use come from GLCD font creator (an old program from octal who used to be on the form, maybe still is?) the trouble...
  48. Replies
    27
    Views
    2,463

    Re: Help With OLED Display / 128X64 SSD1306

    Hi Craig

    I have written some code for using the SSD1306 with Proton24, it will print strings, if you are interested I could post it here.

    It was based on the code above by basparky or that is...
  49. View Post

    Every time a new version of Proton gets released I'm hoping to see the PPI errors for the 24FJ256GA704 fixed but it's been a quite some time now and the file's not been changed in a long while. I...
  50. Thread: Joulescope

    by SimonJA
    Replies
    2
    Views
    84

    Re: Joulescope

    This is for low voltage low power monitoring, such as measuring the exact amount of power used when a pic wakes from sleep to perform some higher current tasks.
  51. Thread: Joulescope

    by SimonJA
    Replies
    2
    Views
    84

    Joulescope

    I saw this a few weeks ago and thought it may be of interest to Proton users:

    Joulescope

    It's a kickstarter for a precision energy analyser tool it has 19 days to go and has met its funding...
  52. Replies
    9
    Views
    210

    Re: How a PCB is made in China

    mjturner - Doesn't the VAT threshold apply to the goods only and not the shipping cost?
  53. Replies
    9
    Views
    210

    Re: How a PCB is made in China

    I just checked and it is near the bottom of the list between China Post and other, are you in the UK? There may be different options for different countries.
  54. Replies
    9
    Views
    210

    Re: How a PCB is made in China

    I totally agree about PCB Way Ken, they provide an excellent service.


    In the past I have tried many others but now just use PCB Way. One nice thing about their service is they keep you updated...
  55. Re: Half Hourly 3phase electricity meter ready

    I'm not sure if your 3 phase meter has flashing leds that indicate usage but if they do that is a very simple and accurate way to monitor consumption.

    I have done this with my single phase meter...
  56. Replies
    13
    Views
    405

    Re: Baud rate problem

    Just tried that setup with a 24FJ64GA004 and get a byte width of 82uS so is in line with what you had calculated (measured on a logic analyser).

    I have compiler version 3.6.2.7, that's the Proton...
  57. Replies
    13
    Views
    228

    Re: Internal clock calibration

    I think there are some calibration registers for the rtc, at least for 24 series pics: RCFGCAL, I was thinking about adjusting these relative to gps time on my project on another thread.
  58. Replies
    26
    Views
    456

    Re: Valid time in NMEA sentance

    I had some trouble finding a gps module, I probably should have asked on here first.

    Some did have Beidou but I though that was for China, mainly I was looking for something that wasn't too old....
  59. Replies
    26
    Views
    456

    Re: Valid time in NMEA sentance

    The spec does say it supports "DGPS, SBAS (WAAS/EGNOS/MSAS/GAGAN)"

    It's a Quectel L86 module
  60. Replies
    26
    Views
    456

    Re: Valid time in NMEA sentance

    I have the thing on my desk today and so have been looking at the number of satellites it's seeing and the fix quality throughout the day.

    I'm surprised to see that it changes quite rapidly it can...
  61. Replies
    26
    Views
    456

    Re: Valid time in NMEA sentance

    I've now extracted the Fix Quality and Number of Tracked Satellites to display on the LCD along with the time so I can see what's happening.

    I did have a 5 satellites and a fix quality of 1...
  62. Replies
    26
    Views
    456

    Re: Valid time in NMEA sentance

    That's very useful Les, I'd not spotted Fix Quality before, thanks!
  63. Replies
    26
    Views
    456

    Valid time in NMEA sentance

    Is there any way to know that a GPS nmea sentence has the correct time?

    I use a module to keep a pic rtc accurate but have noticed that when starting up or possibly no reception the gps outputs...
  64. Re: Migrating a monitored alarm from copper to GSM.

    I've used some of the GSM modules in the past and sending and receiving text messages is very easy, just a few AT commands.

    In the UK I believe that 2G will be around for some time as it's used...
  65. Replies
    7
    Views
    247

    [SOLVED !] Re: Using the compiler's Rev operator to reverse the order of bits in a variable

    Dolci, I thought that too, at first glance the byte example given is quite close to inverting the bits, but it does say invert the order.... my excuse was first thing in the morning and no coffee...
  66. Replies
    7
    Views
    247

    [SOLVED !] Re: How to invert BYTE order

    Bitwise Complement '~' Reverses the bits in a variable.
  67. Re: NRF24L01+ - Problems getting it up and running on P24

    I don't know why it is but almost every time I post a problem on the forum things start working, looks like I have managed to get it working.

    I had the rx CE pin on portb.5 and not c.5.... must...
  68. Re: NRF24L01+ - Problems getting it up and running on P24

    Very sensible idea but I'm not sure that I have any hardware around for 8 bit pics, maybe I could breadboard something.
  69. NRF24L01+ - Problems getting it up and running on P24

    I’ve had a bunch of ten NRF24L01 modules in my drawer for some time and at last I have got around to trying to get them to work, having looked at the datasheet I knew it wasn’t going to be that easy...
  70. Replies
    12
    Views
    2,000

    Re: 24EP256GP204 external interrupt problem

    Sadly I have no time for pic's at the moment :-( but a few suggestions anyway:



    First off it would be a good idea to have some way of checking that your pic is running ok, blinking a led,...
  71. Replies
    32
    Views
    1,427

    Re: New PICkit 4 available

    Mine has been very good, so far no problems but have only been using it for one project programming one particular 24 series chip, the speed is great.

    I have noticed that there are quite a few...
  72. Replies
    22
    Views
    800

    [SOLVED !] Re: Hx711 calibration

    Hopefully you have seen this:

    http://www.protonbasic.co.uk/content.php/4636-Code-for-Driving-2-to-6-seven-segment-displays
  73. Thread: PCB Stencils

    by SimonJA
    Replies
    6
    Views
    268

    Re: PCB Stencils

    <code>
    </code>
    <code id="code-content"><code id="code-content"><code...
  74. Thread: PCB Stencils

    by SimonJA
    Replies
    6
    Views
    268

    Re: PCB Stencils

    In the end I decided against trying a stencil, this time.

    When I looked at the spec for the stencils I had several components with a finer pitch, I was going to alter the dxf file but it just...
  75. Free Shipping at Microchip Direct for June

    Microchip are doing free shipping and no minimum order until 30 June.

    .... may be of use to someone.
  76. Thread: GDPR Policy

    by SimonJA
    Replies
    5
    Views
    153

    Re: GDPR Policy

    I think I agreed to something the other day but it would be nice to have some sort of confirmation before I (possibly) get deleted.
  77. Replies
    22
    Views
    800

    [SOLVED !] Re: Hx711 calibration

    Can you add another 7 segment just to display the "-", if myNumber < 0....
  78. Replies
    22
    Views
    800

    [SOLVED !] Re: Hx711 calibration

    If you did want to stick with just using the pic I would do the display part differently.

    When you have a value to print you could use a For...Next loop to cycle through the digits, look at each...
  79. Replies
    22
    Views
    800

    [SOLVED !] Re: Hx711 calibration

    Glad to hear you have made some progress.

    To be honest I have never tried to drive a multiple 7 segment display from a pic as there are chips that do all the hard work for you.

    I've not looked...
  80. Thread: hatch opener

    by SimonJA
    Replies
    11
    Views
    236

    Re: hatch opener

    Also current sensing is a good alternative to limit switches, no extra hardware and also protects the motor in case of problems with the mechanism.
  81. Thread: hatch opener

    by SimonJA
    Replies
    11
    Views
    236

    Re: hatch opener

    A linear motor/actuator, something like this?
    ...
  82. Replies
    22
    Views
    800

    [SOLVED !] Re: Hx711 calibration

    I think something like this should give you an idea:


    If BUTTON1 = 0 Then
    adjustmentVal = gram
    EndIf

    displayVal = gram - adjustmentVal

    You would not need to worry about debouncing the...
  83. Replies
    22
    Views
    433

    Re: Cdata and Cread

    I think you missed the "AS Byte", ie:


    Dim RIJ As Code = as Byte 13,1,2,3,14,5,6,7,8,9
  84. Replies
    16
    Views
    321

    Re: Why the PIC26K42

    The 24FJ256GA705 family of chips are also very cheap with similar or better features and the equivalent pin count version is even cheaper than this chip.
  85. Replies
    22
    Views
    800

    [SOLVED !] Re: Hx711 calibration

    Hi Amod

    I would do it something like this:

    Use an adjustment variable, initially set to zero, when you press the button set the adjustment variable to the current averaged ADC value from the...
  86. Thread: PCB Stencils

    by SimonJA
    Replies
    6
    Views
    268

    Re: PCB Stencils

    Yes my solder paste is pretty old! I use the same method, thin it down usually just with flux.

    When I first got the paste I kept it in the fridge sealed in a bag but now just have it on the bench,...
  87. Thread: PCB Stencils

    by SimonJA
    Replies
    6
    Views
    268

    PCB Stencils

    I've made a lot of PCB's but never used stencils so thought I would give them a try.

    I usually use a syringe to dispense the solder paste but it's very tedious and not very precise.

    I never do...
  88. Replies
    26
    Views
    462

    Re: Which IDE are you all using?

    That all sounds great John, like the name and looking forward to using it.
  89. Replies
    26
    Views
    462

    Re: Which IDE are you all using?

    I saw a comment Les posted about John's IDE a few days ago and wondered if I had missed something, now I know!

    Looking forward to it.
  90. Replies
    10
    Views
    353

    Re: HPWM low frquency limitation

    There will always be a limited range of settings available in the registers to set the speed and I guess Microchip aim cover the 'normal' range that they expect users would require.
  91. Replies
    10
    Views
    353

    Re: HPWM low frquency limitation

    You could use a timer and an interrupt, to change the interval you could use the PR register.
  92. Replies
    25
    Views
    410

    Re: Just to let you know

    It sounds like the new subroutines would be very similar to the procedures in proton24 in all but name.

    I much prefer to use the proton24 procedures and find very little need for global variables...
  93. Thread: My New PCB

    by SimonJA
    Replies
    22
    Views
    1,957

    Re: My New PCB

    George: What I normally do for sampling battery voltage is is use the positive supply from the battery as the positive reference for the ADC and then sample the voltage reference. It is not super...
  94. Thread: My New PCB

    by SimonJA
    Replies
    22
    Views
    1,957

    Re: My New PCB

    Charlie: I've also just got some new boards delivered from PCBWay for a similar price ($5 for 10 boards). Usually although theses boards are unbelievably cheap they do take a few weeks to arrive...
  95. Replies
    15
    Views
    358

    Re: Re. latest vweaion 3.6.0.7

    Les mentions that the update was a lot of work but I can't find any description of what the changes/updates were... would be interesting and useful to know.
  96. Replies
    2
    Views
    254

    [SOLVED !] Re: Serial string problem with characters

    You've made it a byte and not a string, that's why you get the error.


    Dim Serstring as String * 5
  97. Replies
    32
    Views
    1,427

    Re: New PICkit 4 available

    Mine was supposed to arrive last Friday but with the snow it didn't get here till Monday so I'll have to wait for the weekend to play with it properly.

    I did give it a quick run and it seems fine...
  98. Replies
    32
    Views
    1,427

    Re: New PICkit 4 available

    Certainly will do that, I'm looking forward to a bit more speed though I find it hard to believe it really is five times faster.
  99. Replies
    32
    Views
    1,427

    Re: New PICkit 4 available

    Thanks Norm! Did not know there was a Pickit 4 coming, have just ordered one.

    They are in stock at Microchip Direct and it says it will be with me in a few days.
  100. Replies
    6
    Views
    222

    Re: Supported Devices

    I usually start with the Microchip parametric search and find a chip that has all the features I want, then as Bob suggested above type it into the compiler (Device = ...) and see if it is...
  101. Replies
    4
    Views
    240

    [SOLVED !] Re: For loop with variable abnormal increase

    Hi Pic

    If you use HSerOut you need to use a modifier so what you receive is in the right format, for example HSerOut Dec [pirella] for decimal output, see the manual for more info.

    Maybe this...
  102. Replies
    2
    Views
    269

    Re: Problem with Bitwise Shift Right

    Thanks for such a quick response, better get on with my project now. :encouragement:
  103. Replies
    2
    Views
    269

    Problem with Bitwise Shift Right

    I seem to be getting odd results when using Bitwise Shift Right, shift left works as expected.


    Device = 24FJ64GA004

    Declare Xtal = 16
    Declare Hbus_Bitrate 1000
    Declare Hserial_Baud = 57600...
  104. Replies
    10
    Views
    328

    Re: Pipe diameter measurement

    A segmented photodiode(?), a linear array of diodes could work depending on conditions, it would be retentively simple to implement.

    Assuming that you are basically testing tolerance and not...
  105. Replies
    8
    Views
    282

    Re: Replace Label with String

    Thanks for the very quick response and the patch, all working now.
  106. Replies
    8
    Views
    282

    Re: Replace Label with String

    I get a compile error (missing comma or command terminated incorrectly) when I pass both a ByRef variable and a string variable as parameters to the procedure.

    For example if I use the following...
  107. Re: Is it possible to get a return parameter from PreProcessor

    I'm very possibly missing something here but can't you simply set your CAN_TX_OK to 0 before entering the subroutine and then check it after the subroutine? If it's 1 then it was successful.

    .......
  108. Replies
    142
    Views
    37,136

    Re: Invisible RS232 Serial Buffering code

    C:\Users\**username**\PDS\Samples\New Samples\Buffered_Hrsin

    That's where mine is (Windows 10).
  109. Replies
    27
    Views
    2,463

    Re: Help With OLED Display / 128X64 SSD1306

    I've been working on adapting this to work with hardware i2c and also to use variable width fonts.

    I will post some proper examples when I tidy things up and add some extra stuff but so far so...
  110. Replies
    8
    Views
    282

    Re: Replace Label with String

    Thank you Les, I had managed to get something working along the same principle though not as neat as your method so will look at changing a few things.
  111. Replies
    8
    Views
    282

    Re: Replace Label with String

    I just found Addressof in the manual and I think that will allow me send the location of the font data in memory to the procedure...
  112. Replies
    8
    Views
    282

    Replace Label with String

    I would like read font data in a procedure using Cread something like this:


    dataOut = CRead8 myFontFile[index]



    Where myFontFile is a string in order that I can use one procedure to print...
  113. Replies
    5
    Views
    316

    [SOLVED !] Re: Send many digits with serial

    Well there's no much info to go on.

    Did you test the machine you are working with by sending commands from a pc, did it respond ok to that?

    You don't have any serial setup in the code you...
  114. Replies
    27
    Views
    2,463

    Re: Help With OLED Display / 128X64 SSD1306

    Thanks for posting this basparky, I tried it on a 24FJ64A004 and it worked first time, not often that happens!

    I wanted to make a few changes to get this working on hardware i2c and possibly some...
  115. Replies
    9
    Views
    205

    Re: Using Dim as Code

    Thanks Les, working perfectly.
  116. Replies
    9
    Views
    205

    Re: Using Dim as Code

    It's in the manual under Cdata:
  117. Replies
    9
    Views
    205

    Using Dim as Code

    Since cdata is not recommended for new projects I was going to use Dim As Code to store some fonts but have not used it before and there is not much in the manual or on the forum that i could find.
    ...
  118. Thread: Visual Studio

    by SimonJA
    Replies
    11
    Views
    640

    Re: Visual Studio

    Charlie here is a sample of some button events.

    http://i1013.photobucket.com/albums/af254/bucket__boy/Proton/Fullscreen capture 29032017 175814_zpsdjwyp9t5.jpg
  119. Thread: Visual Studio

    by SimonJA
    Replies
    11
    Views
    640

    Re: Visual Studio

    Bob

    I'm not sure about saving. You can do a save as but there's not an option to Save All As so you may right about that not working too well, I will have to check that out. I did make copies of...
  120. Re: 24E timer1 32.768khz secondary oscillator example

    This is a 16 bit pic so there is just a TMR1.

    If you look at the data sheet under the Timer 1 section there is a block diagram that shows how it works.

    I assume you have the timer working from...
  121. Thread: Visual Studio

    by SimonJA
    Replies
    11
    Views
    640

    Visual Studio

    Last week I downloaded and installed the latest version of Microsoft Visual Studio as I wanted to have a go at making a Visual Basic app for the PC to work with one of my projects and I have packed...
  122. Replies
    8
    Views
    466

    Re: Variable naming best practice

    I Do that too Rick and it's one of the things that makes the the Proton IDE nice to use.... a shame it no longer works in P24 with procedures :-(
  123. Replies
    11
    Views
    909

    [SOLVED !] Re: How to prevent NE556 from overheating?

    Well it's a long time since I used one of those!

    First thing, you should be using a PIC, always a good excuse for making a project unnecessarily complicated!.... add a display, connect it to the...
  124. Re: New Project _ Source Meter and measuring small currents

    I was hoping to make the power supply part of the design very simple.

    I looked back over some power supply projects on Youtube, Gerry Sweeny and Dave Jones. Both end up being quite complex in the...
  125. Re: New Project _ Source Meter and measuring small currents

    I don't think I mentioned the sense resistor values I was using but they are 1K, 10R and 0.1R.

    The 0.1R allows for a current up to a few hundred mA without a significant voltage drop and 1K can...
  126. Replies
    7
    Views
    491

    Re: Question about Procedures

    I am probably missing something here but why not make your common code another procedure called at the end of your first one?
  127. Replies
    10
    Views
    463

    [SOLVED !] Re: max7219 to control world capitals

    If you just Google led matrix you get a good idea, Norm has also posted a link to an example

    To light an led you would take one row high and a column low and this will turn on the individual led...
  128. Replies
    10
    Views
    463

    [SOLVED !] Re: max7219 to control world capitals

    Hi Peter

    I would suggest a different approach, if you use a matrix for the leds you use 11 pins (5x6). You wouldn't even need to do any tricky coding as you're just lighting one led at a time.
    ...
  129. Re: New Project _ Source Meter and measuring small currents

    Norm- Thanks, keithley are certainly the go to company for small current measurements and there is some useful information there. The Art of Electronics, I certainly have a copy of that!

    Ken- The...
  130. Re: New Project _ Source Meter and measuring small currents

    That looks like a good op-amp Ricardo.

    Offset voltage and drift are much worse than the chip I'm using 75uV vs 0.1uV and 0.2uV/C vs 10nV (typical). As I said I don't know much about analogue stuff...
  131. Re: New Project _ Source Meter and measuring small currents

    Thanks Norm, some nice chips!

    I did think initially that it may be possible to do something like that but for the maximum current, even though it will not be that great, I would need a sense...
  132. New Project _ Source Meter and measuring small currents

    What I would really like is a Keithley 2280 source meter, sadly at about £1,800 it is just too much so I would like to make something similar but on a much more modest scale.

    Basically I would...
  133. Replies
    8
    Views
    573

    Re: Power switching through p-channel MOSFET

    I was looking at analogue switches the other day for a project and thought they could replace the relays in your design? I am not sure what their performance would be like at the very low level...
  134. Replies
    5
    Views
    515

    Re: Using harware SPI

    What I didn't understand was what was clocking the data in as there didn't seem to be anything doing that.

    If I understand correctly sending out data is what toggles the clock and reads in the...
  135. Replies
    5
    Views
    515

    Re: Using harware SPI

    :confused: I really need a bit of an explanation in simple terms.
  136. Replies
    5
    Views
    515

    Using harware SPI

    I am using an external 16 bit ADC and at the moment I am using a very simple software routine to toggle the clock and then read in the state of the data out line to set the bits of a word variable. ...
  137. Replies
    4
    Views
    512

    Re: pic24EP timer macros and example

    My suggestion is only relevant for a 32 bit timer (I saw you mention 32 bit in you comments).

    One thing I noticed is you don't set an interrupt priority level, this is set in the IPC registers and...
  138. Replies
    4
    Views
    512

    Re: pic24EP timer macros and example

    I'm not exactly sure what you are asking but I can see you are trying to set up a 32 bit timer.

    I think your issue may be this which took me a while to work out: When you set up a 32 bit timer...
  139. Replies
    6
    Views
    587

    Re: Boolean Operation

    Hi John

    I am not sure about this but I think using | is specifically for bitwise operations?

    Also I assume you are using binary numbers and have not used the percentage sign because of forum...
  140. Replies
    3
    Views
    264

    Re: entry level 3d printing

    I had been thinking about getting a 3D printer.

    I recently moved house and had to sell my lathe and milling machine due to a lack of a workshop space so was looking at a 3D printer to make me...
  141. Replies
    8
    Views
    766

    Re: explaining Hser operation

    I most often use the serial buffer code that Les has written (it's in the samples folder) for this sort of thing, it can make things a lot easier.

    This is an interrupt driven routine and means the...
  142. Thread: My New PCB

    by SimonJA
    Replies
    22
    Views
    1,957

    Re: My New PCB

    Just thought I would update on progress, I had quite a busy week so didn't get too much time to test the board.

    When I first powered it up it didn't work, the i2c comms were not working and...
  143. Replies
    3
    Views
    668

    Re: font creator partial fonts

    If you PM me I'll send the one I have, I've found it to be the most useful of all the ones I've tried.
  144. Replies
    19
    Views
    3,427

    Re: Availability of Amicus24

    I will email you all the info I have this evening.
  145. Replies
    19
    Views
    3,427

    Re: Availability of Amicus24

    It's in the post!

    It's nice to be able to return a favour after having used your excellent plugins and other contributions over the years.

    Here is a picture of it that I must have posted on the...
  146. Replies
    3
    Views
    668

    Re: font creator partial fonts

    I use the original font creator that Octal (?) made for Proton and you can certainly do it with that, I have often just converted numbers.
  147. Replies
    19
    Views
    3,427

    Re: Availability of Amicus24

    Hi John

    I have a board that I made to do general testing with PIC24's that may be suitable. It is an early version which I did update but it does work, it has a graphic display, several i2c chips,...
  148. Thread: My New PCB

    by SimonJA
    Replies
    22
    Views
    1,957

    Re: My New PCB

    Thanks for the nice comments about the board, it's much appreciated and definitely a better reaction than I usually get showing it to my family!

    The board is actually a second version and I'd...
  149. Replies
    23
    Views
    1,701

    Re: Runtime symbol or variable assignment

    This was what I had in mind (not tested).



    Dim position As Byte
    Dim controlByte As Byte

    Select Position
    Case 1
    controlByte = 0b10000000
  150. Thread: My New PCB

    by SimonJA
    Replies
    22
    Views
    1,957

    Re: My New PCB

    Thanks Tim and John and so much better than my wife saying it looks nice.:smile:

    The layout was done using Diptrace.

    It's my eyesight that slows me down, I used to do most things with a...
  151. Thread: My New PCB

    by SimonJA
    Replies
    22
    Views
    1,957

    Re: My New PCB

    Hi Norm

    It has several uses, originally it was to monitor the voltage on a car battery on a car that doesn't get used a lot but I also want to use it as a bike alarm as both a transmitter and...
  152. Thread: My New PCB

    by SimonJA
    Replies
    22
    Views
    1,957

    My New PCB

    Just though I would share my new PCB here as there is nobody in my house who shows the slightest interest. :upset:
    ...
  153. Replies
    23
    Views
    1,701

    Re: Runtime symbol or variable assignment

    You could create a byte setting in a select case to represent your port you want to make high and then AND it with a byte value of 255 to make the appropriate output high.

    ...... does that make...
  154. Replies
    53
    Views
    3,383

    Re: A new Stats collector plugin

    Hi John

    I ran into a few problems installing this version.

    Since the using the last version I've got a new pc (Windows 10) which has a has Proton on it but no other plugins installed yet. When...
  155. [SOLVED !] Re: using PIC18F26J50 to read self battery voltage

    Here is an example but using a different pic (18F14K50), this just produces the raw ADC result.


    Check_Battery_Voltage:
    ADCON0= #00111100 'sample fixed voltage reference
    ADCON1=...
  156. [SOLVED !] Re: using PIC18F26J50 to read self battery voltage

    What you need to do is setup the ADC so that it is using your supply voltage (vdd) as the positive reference and and then sample the band gap reference. I have used that method a lot in the past and...
  157. Re: PIC sending ASCII keyboard characters to PC by USB?

    You didn't mention which 18F pic you wanted to use but I think most should work with the Pickit 2.

    If you update to the latest version you'll find USB HID Keyboard Demo in...
  158. Replies
    53
    Views
    3,383

    Re: A new Stats collector plugin

    I'm using the manual start version which does seem to work ok if that's any help
  159. Replies
    53
    Views
    3,383

    Re: A new Stats collector plugin

    I ended up doing a clean install of Proton which has got me back PrPrc in the includes folder, not sure what happened there.

    I've installed the stats collector and it seems to work fine.

    I am...
  160. Replies
    53
    Views
    3,383

    Re: A new Stats collector plugin

    OK will do, is an uninstall just removing the files in the stats plugin folder or is there more to it?

    I assume that PrPrc is the pre-compiler? I don't have PrPrc.exe in the includes folder, is...
  161. Replies
    53
    Views
    3,383

    Re: A new Stats collector plugin

    I have installed the new one now, it does seem to run ok as far as it goes but I am still getting the PDS error about a missing PrPrc.exe so can't actually get anything to compile at the moment,...
  162. Replies
    53
    Views
    3,383

    Re: A new Stats collector plugin

    Hi John

    I've not used the earlier versions although I've been meaning to, anyway I just spotted your post and though I would give it a try while I finished my lunch.

    I seem to have messed...
  163. View Post

    Thanks Les, I was hoping you'd put it on your To Do list but didn't expect anything so soon, amazing!

    I will be ordering some very soon.

    Thank You!
  164. View Post

    I have had an eye on these since they popped up on a parametric search on the microchip website.

    They don't have any particularly remarkable features and are quite similar to older pic's like the...
  165. Replies
    17
    Views
    1,564

    Re: Hserout/ hserin issues

    Hi Mr Anderson

    As you are just sending the data between two micro's I can't see a need for using the modifiers. If you send out a byte from one you will receive the same byte at the other end and...
  166. Replies
    3
    Views
    508

    Re: Hrsout not working with negative numbers

    Indeed there is and it works, thanks for the swift reply I had not noticed that in the manual.
  167. Replies
    3
    Views
    508

    Hrsout not working with negative numbers

    I was trying to output some variables for debugging using Hrsout and get incorrect values when using signed words that are negative.

    The variables are actually holding the correct value but the...
  168. Thread: Results Window

    by SimonJA
    Replies
    4
    Views
    513

    Re: Results Window

    I have two hints displayed but I didn't want to turn of hints with a declare as they could be helpful.
  169. Thread: Results Window

    by SimonJA
    Replies
    4
    Views
    513

    Re: Results Window

    I don't seem to have that, I have Toggle View but it is greyed out and can't be selected, the other option is Close Results which I can select.
  170. Thread: Results Window

    by SimonJA
    Replies
    4
    Views
    513

    Results Window

    When I compile I get a few hints in the results window instead of the code size info.

    I'm sure I used to click on something to make the hints disappear and go back to the information screen but I...
  171. Replies
    6
    Views
    1,139

    [SOLVED !] Re: 18F45K22 - Junk string from Hserin

    Buy yourself a logic analyser, there are some very cheap ones around, it is one of the most useful tools and will save hours of frustration.
  172. Replies
    4
    Views
    1,086

    Re: PIC24H ADIn Demo (why no PPS for Hrsin)

    You've probably got it by now but here's an example:

    PPS_Input(cIn_Pin_RP19, cIn_Fn_U1RX)
  173. [SOLVED !] Re: Rotation velocity measurement of a wheel (anemometer application)

    Maybe you could swap the reed switch for a Hall Effect Sensor, they are very cheap and easy to use and you would not need to debounce the output.
  174. Replies
    10
    Views
    2,272

    Re: timer3 interrupt for 24ep256gp810

    You have put the interrupt service routine within the procedure.
  175. Replies
    51
    Views
    6,989

    [SOLVED !] Re: Button Debounce

    In order to help debug this you could try putting a large delay right at the beginning. This might help to see if there is a hardware or software issue. You could also move the delay around for...
  176. Replies
    72
    Views
    7,473

    Re: Interrupt handling

    If you your application doesn't require anything too accurate then a simple thermistor or an analogue sensor may be a good alternative. I'm just working on a project and I'm trying out an LMT84...
  177. Replies
    13
    Views
    2,475

    Re: BNF tool: 16 bit version & separate viewer

    Thanks Harm, I just installed the viewer and it is working very nicely.
  178. Replies
    13
    Views
    2,475

    Re: BNF tool: 16 bit version & separate viewer

    A suggestion: I am so used to staring at PIC data sheets for hours on end that it seems natural now to have the bit names in descending order 15 (or 7) to 0 down the page so personally I would prefer...
  179. Replies
    13
    Views
    2,475

    Re: BNF tool: 16 bit version & separate viewer

    I have not checked very thoroughly but it does seem to be working well.

    It is a great tool and will save a lot of time.

    Many thanks
    Simon
  180. Replies
    13
    Views
    2,475

    Re: BNF tool: 16 bit version & separate viewer

    Your bnf looks the same as mine.

    For example the ADC registers: AD1CON1 has no entries , AD1CON2 has only has one entry, AD1CON3 empty....
  181. Replies
    13
    Views
    2,475

    Re: BNF tool: 16 bit version & separate viewer

    I created the bnf using your BNF16 tool having first converted the pdf for the pic to a text file.
  182. Replies
    13
    Views
    2,475

    Re: BNF tool: 16 bit version & separate viewer

    Hi Harm

    I just tried out your 16 bit viewer on a 24F32KA304.

    It has got the names of some registers but quite a lot are empty or partially named.

    Simon
  183. Replies
    15
    Views
    2,032

    Re: ASM ERROR : Linker Error

    I had installed the 1.02.9 patch for P24, although the IDE does not seem to report the Proton24 version in the help>about.

    I have now found the latest version in the files section, I had always...
  184. Replies
    15
    Views
    2,032

    Re: ASM ERROR : Linker Error

    Well spotted John!

    A sort of typo, I do have 3.5.7.3 installed which I believe is the latest, I wrote down 3.5.7.1 on a piece of paper before I updated and got them mixed up.

    When I took out...
  185. Replies
    15
    Views
    2,032

    Re: ASM ERROR : Linker Error

    That's great it compiles fine now, thanks for sorting it out so quickly.
  186. Replies
    15
    Views
    2,032

    Re: ASM ERROR : Linker Error

    Thank you for checking, I have the latest compiler version installed 3.5.7.1 and installed to latest patches last night just to make sure that wasn't the issue before I posted.

    I was porting some...
  187. Replies
    15
    Views
    2,032

    ASM ERROR : Linker Error

    I have just started using a 24F32KA304 but can't get anything to compile, code with 24FJ64GA004 compiles fine.

    I get a series of ASM errors which I don't understand:

    ASM ERROR : Linker Error...
  188. Replies
    4
    Views
    1,567

    Re: Video from SD card

    Also many of the off the shelf media players have a USB port.
  189. Replies
    4
    Views
    1,567

    Re: Video from SD card

    Rasperry Pi and Kodi media player would be very cheap.
  190. Replies
    8
    Views
    1,857

    Re: Shaft position sensor

    Could you use an AMS magnetic position sensor? They are quite cheap.
  191. Replies
    33
    Views
    15,524

    Re: Why so little interest in PIC24's ??

    I moved over to SMD some time ago, it's really not that bad, in fact I would say it's much quicker and easier than through hole.

    I have pretty bad eye sight but once you have a stereo microscope...
  192. Replies
    3
    Views
    1,163

    Re: Notification new contributions in a thread

    Yes, me too.

    I've just checked the settings on my account and for some reason this has changed. It's in My Settings > General Settings.
  193. Replies
    5
    Views
    2,060

    Re: Using the RTC on a 18F65K22

    Thanks Gamboa, a comprehensive piece of code!
  194. Replies
    5
    Views
    2,060

    Re: Using the RTC on a 18F65K22

    Seems to be working now.

    After a lot of messing around I tried replacing the asm parts with basic code and that seems to have done the trick. The asm only changes a few registers in order to make...
  195. Replies
    5
    Views
    2,060

    Using the RTC on a 18F65K22

    I would have preferred to use a 24 series pic for this project but sadly I couldn't find the combination of features I wanted so have had to go back to 8 bit, a shame as Les has written RTC code for...
  196. Replies
    20
    Views
    4,441

    [SOLVED !] Re: Full ASCII Table

    Yes, you can even run 4 graphics cards with 24 monitors!

    http://www.multiplemonitors.co.uk/products/extreme-multi-screen-computer/
  197. Replies
    20
    Views
    4,441

    [SOLVED !] Re: Full ASCII Table

    Yes, me too. I have three monitors and thought that was a bit excessive!

    I would Imagine you would need to run 2 graphics cards for 8 monitors.

    Think of the electricity bills that must be about...
  198. Replies
    20
    Views
    4,441

    [SOLVED !] Re: Full ASCII Table

    Not a table but I use a Quick Base number Converter to convert between various number types.

    It is quite old and I don't think it works with Windows 8 but is fine with Windows 7.
  199. Replies
    6
    Views
    2,550

    Re: How to load an array Proc?

    Hi Norm

    I just tested this and it seems to do what you want:


    Dim YTemp As Byte
    Dim myArray[10] As Word
    Dim count1 As Byte

    For count1 = 0 To 9 'load array with values
  200. Replies
    6
    Views
    2,550

    Re: How to load an array Proc?

    I think you need to load your array with the values you want first and then use the procedure.



    'load myArray with values
    MyProc(myArray)
Results 1 to 200 of 830
Page 1 of 5 1 2 3 4