Search Results - Proton BASIC community web site


Search:

Type: Posts; User: See_Mos

Page 1 of 5 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    14
    Views
    547

    Re: DS3231 Alarm settings anybody

    There is a lot of code for the Arduino as well so it should not be too difficult to work things out.

    Just Google DS3231 Code
  2. Replies
    14
    Views
    547

    Re: DS3231 Alarm settings anybody

    Did you solve it yet? It's not a device that I have used but looking at the data sheet I think that last line should be

    BusOut $D0, $0E, [00000101]
  3. Replies
    8
    Views
    296

    Re: 10Hz to 10KHz Frequency Generator

    Sounds like a problem with the prescaler value. for such a wide range you will need to change the prescaler 1:1 at 10KHx, 1:8 at 10Hz

    I don't know if it is still available for free but...
  4. Thread: ch376

    by See_Mos
    Replies
    14
    Views
    476

    Re: ch376

    I think this was the article that I looked at

    https://arduinobasics.blogspot.com/2015/05/ch376s-usb-readwrite-module.html
  5. Re: Phase offseting PWM to prevent noise on fans

    I like George's idea of using individual PIC's to PWM each fan. One pin on the main PIC sending serial packets to each satellite PIC with ID and speed.

    Another idea if you have space for one IC,...
  6. Replies
    5
    Views
    299

    Re: Proton USB boot loader 2019

    Hi George,

    A pin is pulled high by a high value resistor, this can be one of the USB pins or any other spare pin. If it is a USB pin, with the USB lead disconnected a high is detected which...
  7. Replies
    5
    Views
    299

    Proton USB boot loader 2019

    Proton HID USB boot loader 2019 developed for 18F14K50 and 18F25K50 but easily modified for other devices.

    Refer to the notes DOC or TXT for more information.
  8. Re: Advertisement are getting in the way of posts.

    Thanks Lester, I'll take a screen shot if the narrow text happens again.
  9. Re: Advertisement are getting in the way of posts.

    After posting and going back to 'What's New' everything appears normal. I should have done a screen shot.

    I don't mind ads in between posts or in the side column but in the middle of posts is...
  10. Advertisement are getting in the way of posts.

    Is it just me?

    The ads are getting in the way of the posts. This morning everything is down to about ten characters wide and code blocks only one or two characters.

    Ads in the side column...
  11. Thread: ch376

    by See_Mos
    Replies
    14
    Views
    476

    Re: ch376

    Just out of interest I had a look at the Arduino code for the device. It doesn't look too complex so it shouldn't be too difficult to convert to Proton.
  12. Replies
    8
    Views
    152

    Re: Pic18f25k20 + module i2c (pcf8574)

    It's subtle, but all there in the manual. These work in Proteus using an 18F25K22 and I did not need to setup the MSSP though you might for real hardware.




    '...
  13. Replies
    8
    Views
    152

    Re: Pic18f25k20 + module i2c (pcf8574)

    Interesting, I dug out some old code for the PCF857x series.

    Busout and I2COut are not working but HBusOut is.
  14. Replies
    8
    Views
    152

    Re: Pic18f25k20 + module i2c (pcf8574)

    The LED bar graph in Proteus is not an 'animated' component so LED's will not work in the simulator, only the voltage indicators

    I see that your BUS declaration does not agree with the circuit...
  15. Re: In Proteus 8 after panelisation no holes are printed on pad

    Hi Yves, I do not use Proteus but I do use easy-PC and the gerber files that generates also do not have the center of the pads marked. If I remember correctly the drill locations are in another...
  16. Replies
    16
    Views
    130

    Re: The Proton manual

    Thanks Les,
    It's something that I don't use a lot but is really useful when needed!
  17. Replies
    19
    Views
    94

    Re: One mans meat is another mans poison

    I like 'What's New', it's the first thing I click on each visit. I like the idea of showing the last days posts if there is nothing new to show.
  18. Re: LM1881 How to detect the start of a new video frame?

    I haven't looked back at the data sheet but I seem to remember there is an alternate field signal available that flips at the end, or possibly start of each frame so maybe you could use that?
  19. Replies
    21
    Views
    1,940

    Re: 3x4 alpha numeric keypad

    Hi Fanie, how ya doin' we miss you!

    Getting INKEY to work is easy but for what Amod is looking for, changing character sets and getting the timing right gave me more of a problem.

    I still have...
  20. Replies
    21
    Views
    1,940

    Re: 3x4 alpha numeric keypad

    Have a look INKEY in the Proton Compiler Manual PDF, it is on page 143 of my copy.

    It will not give you the alphabet characters but it is a start.
  21. Replies
    11
    Views
    51

    Re: Current thinking on USB bootloader

    Well at last I have a working boot loader for the 18F25K50 that will compile under version 3.7.2.1, though it still needs some work.

    It's not as neat as Tim's original and I still have to...
  22. Replies
    9
    Views
    55

    Re: CWRITE and 18F25K50

    That didn't really help as I was already using 0e00 or 0f00 for test purposes

    I still have to discover why using pointers corrupted the saved data but I now have a workaround and a working 25K50...
  23. Replies
    9
    Views
    55

    Re: CWRITE and 18F25K50

    Yes, I already worked that out.

    OK, so what would be the next location above or including 0C20 and I will give that a try.

    The test code is only 104 bytes excluding the offset and looking at...
  24. Replies
    9
    Views
    55

    Re: CWRITE and 18F25K50

    3738

    It attached as a file instead of a picture and can be seen easily.
  25. Replies
    9
    Views
    55

    Re: CWRITE and 18F25K50

    What have I missed?

    The Proton manual gives the impression that you can write anything just about anywhere and by reading, modifying, writing back a 64 byte block it would be possible would it...
  26. Replies
    4
    Views
    49

    Re: Print CLS stopped USB from working

    Thanks Les and thanks George for reminding me. I have used the technique before but my RAM really is failing now and I had forgotten about that.
  27. Replies
    9
    Views
    55

    CWRITE and 18F25K50

    Help please.

    Using V3.7.2.1

    The CWRITE page of the compiler manual states that data can be written anywhere in memory and gives some samples however I am finding that it is only possible to...
  28. Replies
    24
    Views
    101

    Re: The use of USB with the 18F2550

    I prefer HID. A long time ago while working with CDC I got into a right mess because every time I changed something in the descriptor file the PC created a new virtual serial port and it was...
  29. Replies
    4
    Views
    49

    Print CLS stopped USB from working

    I'm putting this here because it is not really an error, more of a coding problem.

    I have been working on some 18F25K50 USB code for several days but sometimes the PC reported "Device not...
  30. Replies
    23
    Views
    82

    Re: Pal signal sampling

    Just a thought, as you don't need a precise value how about using the timer or even just a loop counter?

    use a PIC comparator, leave out the capacitor and diode and use the comparator interrupt...
  31. Replies
    23
    Views
    82

    Re: Pal signal sampling

    There is a component missing from the last idea. As it was the capacitor would be discharged by the comparator. Adding a diode will solve it, if not a sample and hold circuit may be needed.

    With...
  32. Replies
    23
    Views
    82

    Re: Pal signal sampling

    Based on your diagram

    If the difference is reasonably clear, if the black level is good and if the contrast is good or if you amplify the signal first then

    Connect the video to an AtoD input...
  33. Replies
    11
    Views
    51

    Re: Current thinking on USB bootloader

    No wonder I am confused, I just found the answer to one of my problems here:-

    http://www.protonbasic.co.uk/showthr...d-IDE-Hex-view

    And Here:-
    ...
  34. Replies
    11
    Views
    51

    Re: Current thinking on USB bootloader

    Hi Tim,

    It does connect to the PC and John's EXE. I added an LCD to the BL and can see the received commands and the returned $55 by using the write and erase buttons. Erase is too fast to be...
  35. Replies
    23
    Views
    82

    Re: Pal signal sampling

    I'm rambling again!

    To go off at a completely different tangent, have you tried capacitance?

    The theory is simple but I don't know what the effect of a tube of water would be on the dielectric...
  36. Replies
    23
    Views
    82

    Re: Pal signal sampling

    Yes, I am very familiar with analogue TV systems, how to pick out individual lines to display on a scope etc. Long before uP were common I used TTL devices because the available CMOS was not fast...
  37. Replies
    23
    Views
    82

    Re: Pal signal sampling

    I'm not sure but I think the shield only gives you the LM1881 the rest looks to be concerned with the Arduino.

    The left diagram here was the starting point I was thinking of.

    I don't know if it...
  38. Replies
    23
    Views
    82

    Re: Pal signal sampling

    Interesting puzzle, excuse my ramblings!

    How about using a comparator input, resistor from the video signal and a low value capacitor to common.

    Start with the comparator pin as output low to...
  39. Replies
    23
    Views
    82

    Re: Pal signal sampling

    Using something like the TLC5510 20MSPS chip with parallel output might help. If you can align the camera accurately enough so that the light is at the left side of the scan and time from the line...
  40. Replies
    11
    Views
    51

    Re: Current thinking on USB bootloader

    Hi Tim, I gave up on trying to get the old code working and moved on to converting / reworking your old code under the current version of Proton.

    I used parts from some previously working 18F25K50...
  41. Replies
    11
    Views
    51

    Re: Current thinking on USB bootloader

    Back to this again.

    I wanted to move to a 18F25K50 so back on the spare computer running V3.5.2.7. I changed the config, compiled and sorted out the erroneous registers but I am left with one...
  42. Thread: MAX7219 help

    by See_Mos
    Replies
    9
    Views
    64

    Re: MAX7219 help

    Still has some REM error but this code works for two displays connected as post #1


    ' #### note to change digit registers to suit display connections ###

    $define _LCD_PORT_ 1 '...
  43. Thread: MAX7219 help

    by See_Mos
    Replies
    9
    Views
    64

    Re: MAX7219 help

    I admit I made a mistake. That code comes from something I did about fifteen years ago. I had forgotten that the digit registers can be swapped around in any way that suits the PCB layout, in fact...
  44. Thread: MAX7219 help

    by See_Mos
    Replies
    9
    Views
    64

    Re: MAX7219 help

    Anton,
    The connections to the display are wrong. A problem with the ISIS model of the display. The left digit is connected to terminal 1.

    MAX7219 DIG0 connects to terminal 4 of the display,...
  45. Replies
    11
    Views
    51

    Re: Current thinking on USB bootloader

    I also had a copy of Tim's old boot loader from the WIKI. As Tim pointed out is does not compile under later versions of Proton so while waiting for him to find his later version I installed the...
  46. Replies
    11
    Views
    51

    Re: Current thinking on USB bootloader

    I managed to get a bit further. I don't know if it was a W7 or Bullguard problem.

    The default installation directory for PICDEM FS USB is C:/Microchip Solutions but changing it to Program...
  47. Replies
    11
    Views
    51

    Re: Current thinking on USB bootloader

    Yes please Tim.

    It seems we haven't moved on at all during the last few years and, as Tim pointed out, the old software that he and John supplied no longer compiles. I may have to fire up my...
  48. Replies
    11
    Views
    51

    Current thinking on USB bootloader

    I have been away from Picin' for a while but now have a small job to do for my friend. He is not local so I need a simple standalone PC application so that I can send him modified hex files for him...
  49. Replies
    18
    Views
    83

    Re: Thermistor Steinhart-Hart linearisation procedure for Proton BASIC

    Hi Tim, the device is NTC so the resistance drops as temperature increases. Looking at the data sheet at 100c the resistance is 6773 ohms and at 200c it is 636.7. If the NTC is connected to VSS and...
  50. Replies
    18
    Views
    83

    Re: Thermistor Steinhart-Hart linearisation procedure for Proton BASIC

    +/-2C should not be too difficult using something like Farnell 116 4823 NTC in a potential divider arrangement , especially if you can ignore the out of range readings.

    What is your supply...
  51. Thread: Usb - c

    by See_Mos
    Replies
    9
    Views
    60

    Re: Usb - c

    Thanks Lester for the thewirecutter link. I was looking for a USB-C to USB-A adapter cable and now I know which one to go for without paying Apple prices.
  52. Replies
    21
    Views
    65

    Re: 16 leds to drive, how?

    For the initial test I would consider 4 lines of 4 in series / parallel and an LM317 in constant current mode.

    If you want PIC control over the intensity then a PIC with an internal op-amp...
  53. Re: Les & Tim modified version of serial buffer. Error ...(__HRSIN1__)

    The INC file does not use HRSIn1 but there is a label HRSin2

    What was the PIC that the earlier code worked with?
  54. [SOLVED !] Re: Ports not working when using PORTA = %111111

    Could be a problem with the TRIS register setting.

    Using the commands HIGH and LOW set the TRIS registers to output automatically but PORTA = % 1111 or LATA = % 1111 does not.
  55. Thread: Les is my hero

    by See_Mos
    Replies
    2
    Views
    16

    Re: Les is my hero

    Installing Proton created a restore point which I was able to use to recover my computer to as it was the previous day. Not all installations, including Acronis, do this so you saved me a lot of...
  56. Thread: Les is my hero

    by See_Mos
    Replies
    2
    Views
    16

    Les is my hero

    :joyous:
    Yesterday I installed the latest version of Proton

    Today I installed Acronis True Image 2019 because I needed to have a look at some old Acronis backup.

    Nothing useful so I...
  57. Replies
    14
    Views
    43

    Re: Pickit2 firmware

    I have had the same problem but I noticed that it only happens if I shut down the PC while the PicKit2 software is running and PK2 is plugged in at the time so now I close the software and unplug PK2...
  58. Replies
    4
    Views
    23

    Re: Anyone speak Arduino?

    I have put this to one side for now.

    My original idea was too simplified and I think I have found an alternative and better approach.
  59. Replies
    4
    Views
    23

    Re: Anyone speak Arduino?

    Yes, I know, I was being flippant.

    Thanks for the code, I will give it a try later today :smile:
  60. Replies
    4
    Views
    23

    Re: Anyone speak Arduino?

    OK, I think I worked that out as


    If U2 > U1 Then
    T = U2 - U1
    Else
    T = U1 - U2
    EndIf

    Now for the next bit which is
  61. Replies
    4
    Views
    23

    Anyone speak Arduino?

    Dirty word I know (Arduino)

    I am trying to convert some code to Proton, at one time when I was using C as well as Proton I may have been able to do it but now I am struggling. Can anyone...
  62. Replies
    19
    Views
    45

    Re: Diffuser IR Leds (how)

    Tim, what is the wall thickness, internal and external diameter and length of measurement area for the tube.

    Is the water clean, distilled or other?

    I have an idea that might work but might...
  63. Replies
    37
    Views
    77

    I dont belive it ! Re: Back in time looking good !

    I found some 807's. they are low down between the two racks, unfortunately I didn't take any pictures between the two racks.
  64. Replies
    9
    Views
    47

    Re: LCD05 I2C interface to HD44780 LCD display

    If speed isn't important Charlie could revert to the old RS232 which only needs one pin
  65. Replies
    37
    Views
    77

    I dont belive it ! Re: Back in time looking good !

    I went to Bletchley Park last year.

    Where are those 807's hiding? I know there are some in there somewhere

    #1 Colossus back view
    #2 back view
    #3 front view
    #4 mock up of a receiving station,...
  66. Replies
    19
    Views
    45

    Re: Diffuser IR Leds (how)

    I had a scrap one in the garage. It was already in pieces and I see one of the thin plastic sheets has a metallic appearance and acts like a very effective Fresnel lens.
  67. Replies
    19
    Views
    45

    Re: Diffuser IR Leds (how)

    I don't know if it will help, Most LCD screens only have a CCFL tube at the top and at the bottom but the light is diffused very evenly.

    Recently I have been converting industrial monitors to LED...
  68. Replies
    3
    Views
    16

    Re: Super capacitors & solar energy

    Depending on your location those new fangled solar powered street lights should solve one problem and a solar panel charging an SLA could work each camera
  69. Replies
    37
    Views
    77

    I dont belive it ! Re: Back in time looking good !

    The Navy Lark has to be my absolute favorite, Ronnie Barker as able seaman Johnson (Johnsy) I have a near complete collection.

    Round The Horne is another favorite.
  70. Replies
    37
    Views
    77

    I dont belive it ! Re: Back in time looking good !

    I can relate to Les story as it was my dad that got me started with valve radio in the mid 60's
  71. Replies
    37
    Views
    77

    I dont belive it ! Re: Back in time looking good !

    Happy New Year Fanie. Welcome back, we missed you!
  72. Replies
    14
    Views
    61

    Re: Driving 2 LCD Modules from 1 CPU

    Cancel my way, it did not work.
  73. Replies
    14
    Views
    61

    Re: Driving 2 LCD Modules from 1 CPU

    The only way I can think of is to have three enable pins, one for each display and one for the declare. Start with the two LCD enable pins high, before printing set the required enable pin low...
  74. Replies
    7
    Views
    60

    Re: Log in problems again.

    I don't log out, just close the page and move on. It could be a Firefox thing as I just noticed that if I right click over the box a menu drops down and there is the option there to fill in the user...
  75. Replies
    7
    Views
    60

    Log in problems again.

    Not a major problem and it's probably a coincidence but since the advertisements started to appear when I first open the Proton web page and click on User Name I no longer get my saved user name...
  76. Replies
    33
    Views
    1,821

    Re: Multiple functions by a single switch

    Sorry Amod, I do not use 16F devices so I cannot help with device specific config as I have nothing to test with.

    The only thing that might help is if you can use your programmer to view the fuse...
  77. Replies
    33
    Views
    1,821

    Re: Multiple functions by a single switch

    You could replace your FND: code with

    DG = Character_Pattern,Digit

    and placing


    ' BIT pattern for common anode seven segment display
    Character_Pattern: '...
  78. Replies
    33
    Views
    1,821

    Re: Multiple functions by a single switch

    With your seven segment LED's a low powers the LED. Your decimal point LED is on PORTB.0 and all of your character patterns end in 1 so subtracting 1 makes the last BIT value 0

    The correct way to...
  79. Replies
    6
    Views
    37

    Re: time stamp on posts

    Not important at all, just something I noticed and as I never scroll right down the page I had not seen the note about time either
  80. Replies
    33
    Views
    1,821

    Re: Multiple functions by a single switch

    Try DG3 = DG - 1
  81. Replies
    33
    Views
    1,821

    Re: Multiple functions by a single switch

    OK, that explains the problem.

    does the segment drive use NPN transistors to drive common anode display?

    Tell us which segment connects to which pin of PortB
  82. Replies
    6
    Views
    37

    time stamp on posts

    I don't know how this affects members worldwide but I just noticed that the time stamp on forum posts here in the UK is showing 16:15 instead of 15:15
  83. Re: johngb has just uploaded New Update to Proton Studio!

    Bullguard threw a wobbler and quarantined Studio so I will now have another try, telling Bullguard to ignore any threats from Studio.
  84. Replies
    33
    Views
    1,821

    Re: Multiple functions by a single switch

    See pages 61 To 63 of the compiler manual For an explanation of logical operators

    DG3=128 | DG And DG3 = DG + 128 will work If the decimal point in On PORTB.7

    DS3=128 & DG does not work.
    ...
  85. Re: johngb has just uploaded New Update to Proton Studio!

    Hi John,

    Just tried Proton Studio for the first time. Just few points

    The install ICON stayed on the Windows toolbar after installation completed. Right click on the ICON brings up 'Close...
  86. Replies
    33
    Views
    1,821

    Re: Multiple functions by a single switch

    As you are simply adding the decimal point try

    DG3 = DG + 128
  87. [SOLVED !] Re: Problem to enabling all PortB set as pull-ups on the 18F25k22

    I didn't know that, so ALL_DIGITAL = TRUE is no longer needed?
  88. Replies
    14
    Views
    54

    Re: PIC18F1330 PLL problem

    I found this on another forum, might help

    Config:
    _CONFIG1H: 0x0039

    Program:
    OSCCON:=0x70; //8MHz from internal source
    OSCTUNE.PLLEN:=1; //internal PLL, center freq.
    repeat until...
  89. Replies
    20
    Views
    120

    Re: Pic16f18877 oread

    Hi George, I found it impossible to read as well but if you save it to your desktop you can open it with Windows photo viewer. It's clearer and you can zoom in as well.

    I must admit that I did...
  90. Replies
    20
    Views
    120

    Re: Pic16f18877 oread

    Yes George, the one-wire code is completely software driven.

    I compiled the code for both devices and had a look at the assembler and from the start of the BASIC to the end they both appear to be...
  91. Replies
    36
    Views
    163

    [SOLVED !] Re: Mysterious PORTB problem

    I should have said that the pin numbers I suggested are for the DIP version so the capacitors are across VDD and VSS
  92. Replies
    36
    Views
    163

    [SOLVED !] Re: Mysterious PORTB problem

    Just thought of something else, have you got 100nF ceramic capacitors pins 11 to 12 and 31 to 32 and as close to the PIC as possible?

    Depending on track layout you might get away with either but...
  93. Replies
    36
    Views
    163

    [SOLVED !] Re: Mysterious PORTB problem

    Although it does not have a Port E as such RE.3 / MCLR is is implemented on pin 1 of the 25K22 and follows the same rules as the bigger device.

    You mentioned that the code seems more stable after...
  94. Replies
    36
    Views
    163

    [SOLVED !] Re: Mysterious PORTB problem

    Just noticed something in that last post. There is an error in the code as posted but not in my code as used. There should be no space between % and the first 0.
    Although Proton does not process...
  95. Replies
    36
    Views
    163

    [SOLVED !] Re: Mysterious PORTB problem

    Read-Write-modify only affects the output latches not the input side so that's not the problem.

    Is there anywhere else in the program that writes to Port B ?

    I tried you first code with 10K...
  96. Re: Converting Les's interrupt timer to 18F25K22

    Thanks for the reminder George, I have mentioned the problem previously but my RAM is failing to update.
  97. Replies
    36
    Views
    163

    [SOLVED !] Re: Mysterious PORTB problem

    Just to get a clear picture of how you have configured the hardware delay on PORTB could you post a sketch of the circuit

    What do you have on the MCLR pin

    Are you using any of the analog inputs...
  98. Converting Les's interrupt timer to 18F25K22

    Les's original code is here in post #30

    http://www.protonbasic.co.uk/showthread.php/64749-stopwatch-accuracy-at-least-0-01-seconds/page3.

    Following on from another thread I decided to try...
  99. Thread: Simple timer

    by See_Mos
    Replies
    29
    Views
    1,348

    [SOLVED !] Re: Simple timer

    Just had a look on the forum to see if I could find Tim's post and I see that Les also posted an interrupt timer. If anyone wants to know more search the forum for 'stopwatch'
  100. Thread: Simple timer

    by See_Mos
    Replies
    29
    Views
    1,348

    [SOLVED !] Re: Simple timer

    duplicate post removed
  101. Thread: Simple timer

    by See_Mos
    Replies
    29
    Views
    1,348

    [SOLVED !] Re: Simple timer

    There are still problems with Amods code but now I understand, it is not a timer, it is a pulse counter

    By the way Joseph, I would never use a software timer for more than a couple of seconds. I...
  102. Thread: Simple timer

    by See_Mos
    Replies
    29
    Views
    1,348

    [SOLVED !] Re: Simple timer

    No, I couldn't work out that last bit of code either
  103. Thread: Simple timer

    by See_Mos
    Replies
    29
    Views
    1,348

    [SOLVED !] Re: Simple timer

    I knew about the 1 second delay but for this simple timer I don’t think that is a problem.

    Joseph’s second code works for me but it does not show the time remaining. I just changed the PORT pins...
  104. Replies
    36
    Views
    163

    [SOLVED !] Re: Mysterious PORTB problem

    I looked at this again and the code has several problems and the timing is all wrong. I think you need to start again with just the switch code and get that working first..

    What is the code after...
  105. Thread: Simple timer

    by See_Mos
    Replies
    29
    Views
    1,348

    [SOLVED !] Re: Simple timer

    Try this, the timer counts down as long as D.7 is high



    Dim Timer_Count As Byte
    main:
    Print At 1,1,Dec2 Timer_Count ' show a leading zero if less than 10

    If PORTD.7 =...
  106. Replies
    36
    Views
    163

    [SOLVED !] Re: Mysterious PORTB problem

    I think Stephen has spotted where the code was latching up.

    If you have not set interrupts on change or interrupts on PortB then you don't need to keep clearing and setting GIE
  107. Replies
    0
    Views
    16

    DS1077 Programmable oscillator

    OK, I searched 'the net' and found some C code but nothing in BASIC.

    Before I start hammering the old grey cells - has anybody done anything with the DS1077 please?
  108. Replies
    19
    Views
    81

    Re: Frequency counter

    This is the main part, the .inc is just a setup file. I also added printing of the period count


    $define _LCD_PORT_ 1 ' LCD PortA = 0, PortB = 1, PortC = 2
    Include "18F25K22...
  109. Replies
    18
    Views
    64

    Re: Inexplicable fault. Any tips?

    I just read the data sheet. The typical low logic level has to be less than 0.5 volts so that might be worth checking.

    Probably a silly question, did you 'scope the input pins to be sure the...
  110. Replies
    19
    Views
    81

    Re: Frequency counter

    If it helps I have a low frequency DFM that was part of a bigger project. It would need some more work doing on it. At the moment it measures a full cycle then calculates and prints the frequency,...
  111. Replies
    19
    Views
    81

    Re: Frequency counter

    Hi Teo, did you get it working?
  112. Replies
    18
    Views
    64

    Re: Inexplicable fault. Any tips?

    My first guess would be ground bounce. try beefing up the ground track with some fine wire. Could also be a layout problem, the PIC ground should go direct to the decoupling 'lytic and not via the...
  113. Replies
    13
    Views
    90

    Re: PORT INDEX help-me

    I didn't know that!

    ClearPin and SetpPin are described in the help file
  114. Replies
    33
    Views
    1,592

    [SOLVED !] Re: Pulse counter using COUNTER command

    lights only the decimal point so change


    DS3:
    Gosub FND
    DG3 = DG

    to
  115. Replies
    103
    Views
    284

    Re: Malware on this website?

    Same here using Firefox
  116. Re: 16f876 that I can use in place with 16k program memory

    My first thought was the 18F452 with 32K program space
  117. Replies
    1
    Views
    12

    File repository

    I just noticed that the file repository section shows 56,679 downloads of PDS.

    Is this just the latest version or does this include previous versions?

    If it is for the latest version then a lot...
  118. Replies
    5
    Views
    30

    Re: Same code different pic

    Go back to the beginning.
    Try this very simple code to show the oscillator is correct.
    Change the LED port to any port pin with an LED connected.

    ...
  119. Replies
    6
    Views
    36

    Re: Currently on line

    Interesting.

    I make a habit of logging in so that I can use "What's New?" tab to see what has been updated since my last visit.
  120. Replies
    27
    Views
    215

    Re: MCP23017 port pin expander not working

    Not much to do here today so I played around and reduced the main code to this


    Test_2:
    ' ---- 5 ' Flash alternate red green LED's
    REG1 = 0 : REG2 = $FF ...
  121. Replies
    27
    Views
    215

    Re: MCP23017 port pin expander not working

    Les' code does not work for me in ISIS but is OK on real hardware. My Proteus is a few years old and there are some errors in the MCP23017 model, some of which I reported and were fixed by Ettore,...
  122. Replies
    6
    Views
    36

    Currently on line

    11:58 Friday morning here in the UK

    Currently active users 127 guests and me!
  123. Re: "Microsoft ahead in race to produce a quantum computer"

    They should concentrate on getting W10 problems solved first or rewrite the whole thing.

    I'm fed up with daily updates in W7 and W10. I knew I should have switched to Apple when I bought a new...
  124. Re: Need someone smarter than me to write code for POV displays

    I found two articles in Elektor but the code has to be downloaded from their website and I let my subscription expire a few years ago.

    They are Jan 2007 and Dec 2008
  125. Replies
    20
    Views
    196

    [SOLVED !] Re: Problem in pulse per second meter

    The program stops for 1 second to count the number of pulses. In this time the display is blank.

    You need to find another way to count pulses.
  126. Re: Need someone smarter than me to write code for POV displays

    The one that I was thinking of does not do text but I am sure I have seen one somewhere.

    There is almost certain to be a Raspberry Pi project to do what you need.
  127. Re: Need someone smarter than me to write code for POV displays

    There was something like this in Nuts & Volts magazine, I'll see if I can find it.
  128. Replies
    3
    Views
    50

    Re: DAC voltage output

    Turned out to be very easy, just two registers - one for DAC setup and one for the DAC value


    '****************************************************************
    '* Name : UNTITLED.BAS ...
  129. Replies
    2
    Views
    25

    Re: anyone used 16F1713 through 16F1719?

    turned out to be very easy


    '****************************************************************
    '* Name : UNTITLED.BAS *
    '* Author : [select...
  130. Replies
    3
    Views
    50

    Re: DAC voltage output

    I don't see any DAC commands but it is relatively easy, when I get a few moments spare I am working on a 16F1718 DAC
  131. Re: Best choice, 18F26K22 or 16F18857 for Mat/Calc. IOC Edge trigger?

    I think we have covered this filter problem before. A resistor between the voltage being measured (the potential divider) and the PIC input and a capacitor from the PIC input to common will form a...
  132. Re: Please hep on remake Color TV OUT program MPlab C16 to Proton24

    Interesting, I still repair PAL and SECAM monitors for the oil industry and often wondered if it would be possible to build a test card generator using a PIC.

    The code in the first zip is mostly...
  133. Replies
    2
    Views
    25

    anyone used 16F1713 through 16F1719?

    anyone used 16F1713 through 16F1719?

    I am particularly interested in using the digital to analog converter
  134. Re: AD9833 calculating tuning hex values/writing to registers

    There are quite a few pre built modules on Ebay. I use this one. It is about 1.3 inches square and has an on-board crystal and adjustable gain amplifier
  135. Replies
    2
    Views
    35

    Re: Help Keep The Bombe At Bletchley

    Well at least it looks as if it will stay at the same complex. It's an amazing piece of electro-mechanical equipment.

    I went to Bletchley last year. Unfortunately part of the computer museum was...
  136. Replies
    12
    Views
    72

    Re: Simple cheap dev board needed

    I've been away a few days so only just seen this thread.

    I have a few Microchip dev boards but I tend to still use home brew boards with PICKit 2. I probably have a dozen or more going back to...
  137. Replies
    10
    Views
    70

    Re: Persistence freq for Led Bargraph

    PCA9535E, PCA9535EC ?

    The others I looked at were not suitable.
  138. Re: H bridge driver for 12v Motor recomendations

    I cannot think why the motor speed is so difficult to control when the data shows such a wide control range. A software PWM at low speed may help but I am not sure that you will need to raise the...
  139. Re: H bridge driver for 12v Motor recomendations

    Hi Tim, I don't think you said what type of motor you are using but I assume it is a standard permanent magnet one? Something I learned the hard way many years ago is that for reliability the...
  140. Re: Base biased PNP transistors running at > Pic VDD

    Shantanu is right, it's the only way using a dual PNP device to source the current, without adding more transistors to drive the PNP device.

    I see there are composite PNP & NPN devices in SOT363...
  141. Replies
    8
    Views
    75

    Re: Crystal-less operation

    Hi George, I am not sure if line 2 comments are correct but this worked for me on an 18F25K50 on intosc



    PLLSEL = PLL3X ;3x clock multiplier 3 x 16 = 48
    CFGPLLEN = On ;PLL Disabled...
  142. Replies
    7
    Views
    57

    Re: Downloading of proton installer

    Hi Lester, no problem here
  143. [SOLVED !] Re: ADC with 18F24K40 - seem to be getting nowhere. Please help.

    Hi Pete, welcome back.

    The first thing I spotted is that you are setting TrisA to decimal 11 instead of binary %00000011 and there should be eight bits for each setting and not 6 as in your code
  144. Replies
    4
    Views
    56

    Adding buttons to USB mouse demo.

    Help please. This should be so easy but today I am really struggling :confusion:

    I have read various articles on the web but cannot figure out how to add left and right button click to the USB...
  145. Replies
    8
    Views
    54

    [SOLVED !] Re: Proton IDE not saving files correctly

    I used to get something like this when there are more than three .BAS files open in the editor or sometimes after a long session of editing and compiling. Now I just close any files that I am not...
  146. Replies
    4
    Views
    29

    Re: Installing 3.6.0.2 throws up new errors

    I just added an underscore at then end of any offending names and recompiled.
  147. Replies
    4
    Views
    29

    Installing 3.6.0.2 throws up new errors

    I have just installed 3.6.02 on a clean hard drive and now compilation is throwing up errors that did not occur previously.

    For example the Label 'Loop:' and Goto Loop' that I have used for years...
  148. Re: Declare PORTB_Pullups On and Off could that be changed in Main program and Sub

    Yes, a few days ago I also noticed that the Declare PortB_Pullups is missing from the manual
  149. Thread: What's new?

    by See_Mos
    Replies
    4
    Views
    23

    Re: What's new?

    I have a shortcut on my Firefox shortcuts bar to take me directly to the forum then click on "What's new?"
  150. Thread: What's new?

    by See_Mos
    Replies
    4
    Views
    23

    Re: What's new?

    Hi Bob, Of course, I've been using it for years but now that I visit less frequently I appear to only get the last seven days of new posts.
  151. Thread: What's new?

    by See_Mos
    Replies
    4
    Views
    23

    What's new?

    Is it just my imagination or does "What's new" only give you posts for the last seven days?

    If that is the case then I will have to visit the forum more often as I may be missing something!
  152. Replies
    2
    Views
    38

    Re: 18F14K22 Clock Speed Settings

    Hey Fanie, good to see you back on the forum. Hope all is well.

    I don't get on here much myself lately, not much picin' going on around here.
  153. Replies
    1
    Views
    40

    MAX7219 random faults

    For several years now I have used the MAX7219 in various projects. One in particular is used in an automated welding application and the display will randomly show 8888 instead of the correct value...
  154. Replies
    10
    Views
    4,691

    Re: Watchdog example

    I have been trying to get the watchdog working on an 18F25K22 without much luck until I found that WDTEN in fuse configurator (CONFIG2H) has four options. To enable / disable the watchdog in...
  155. [SOLVED !] Re: Help, I need use USB with internal oscillator INTOSCIO in 18F25K20

    Sorry for the late reply, MTH good to read you got it working.
    My code was modified from an earlier version and tested with V3.5.9.2
  156. [SOLVED !] Re: Help, I need use USB with internal oscillator INTOSCIO in 18F25K20

    This is my working test code. There are a few differences in the config. Also in your code Declare XTAL = 48 is commented out, as far as I remember without the declare the compiler defaults to 4MHz...
  157. Re: How to use the preprocessor to change LCD port declares

    Thanks Alberto, Your replies in post 4 and post 9 both work. It was so obvious once I spotted the error, the ‘unrecognised or incorrect operator syntax’ error was because in the main code I put the...
  158. Re: How to use the preprocessor to change LCD port declares

    I spotted that but wasn't sure so I tried removing it and tried other variations without success
  159. Re: How to use the preprocessor to change LCD port declares

    Thanks Alberto but that didnít work either.

    All_Digital = true, using FOSC = INTIO67, no peripherals activated and all port pins are set to output for the purpose of this test so that I can cut...
  160. Re: How to use the preprocessor to change LCD port declares

    Thanks Alberto, that works. I would also like to add the option of PORTA. I am puzzled why this does not work?

    '$define _LCD_PORTA_
    '$define _LCD_PORTB_
    $define _LCD_PORTC_

    Then

    $ifdef...
  161. How to use the preprocessor to change LCD port declares

    Help please. I thought I had done this some time ago but today I cannot make it work.

    Basically I have an 18F25K22 developement board where I can unplug the LCD and buttons and move them from one...
  162. Re: The links in the Wiki articles are broken.

    I keep getting a 'database error' when I try most of the links within the WIKI page.
  163. Replies
    3
    Views
    335

    Re: Compile causes "Save as" error

    I forgot to mention that I am using W7 and that if I close the "save as" then close all open files except the one that I need to compile and the problem is temporarily fixed.
  164. Replies
    3
    Views
    335

    Compile causes "Save as" error

    Difficult to title this one.

    Has anyone else had this problem?

    This used to happen if there were several files loaded into the editor, usually after a long editing session, but this morning...
  165. Re: Unable to get 18F25K50 and new USB stack working

    I wanted to use the USB stack because it is newer than the original commands and it is a challenge to make it work.

    I forgot to mention that I need HID. I have added a working fuse config from an...
  166. Unable to get 18F25K50 and new USB stack working

    Help Please. Has anyone managed to get the 18F25K50 or 18F45K50 to work with the new USB stack? I have been trying for several days with the USB stack from V3.5.9.2 of the compiler.

    The mosue...
  167. Re: Variable '_USB_RAM' not found in USB keyboard demo

    Thanks Les
    Pleased to report that everything that I have tried so far has compiled without errors.
  168. Re: Variable '_USB_RAM' not found in USB keyboard demo

    Thanks Les, you're a star, what would we do without you?
  169. Re: Variable '_USB_RAM' not found in USB keyboard demo

    With several variations of the various .inc files associated with USB I decided to start over.

    I uninstalled the previous version of Proton, moved the contents of the documents/PDS folder to my...
  170. Re: Variable '_USB_RAM' not found in USB keyboard demo

    Thanks George,

    As provided the mouse demo is for 18F14K50 and the Keyboard demo is for 18F26J50
  171. Variable '_USB_RAM' not found in USB keyboard demo

    Trying to modify an older 18F4550 USB code, which still compiles OK, for the 18F25K50 but this one will not compile because of _USBTattached not found error. This was mentioned in a previous post.
    ...
  172. Replies
    14
    Views
    402

    Re: New error message in fuse configurator MK2

    Thanks Harm,

    The V2.1.1 zip was the only one that I could find and it only has the .exe file.

    I changed the registry entry to point to the .exe that I had already placed in the JGB Tools...
  173. Replies
    14
    Views
    402

    New error message in fuse configurator MK2

    Help please.

    I started a new project today for 18F25K50. Starting with Johns Fuse Configurator MK2 the 'Check USB' button is visible but when I click on it I get the message

    Windows cannot...
  174. Replies
    9
    Views
    7,839

    Sticky: [SOLVED !] Re: USB Key drivers not installing

    <!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:AllowPNG/> </o:OfficeDocumentSettings> </xml><![endif]--> I know we have been here before and I think I posted my solution on the forum...
  175. Replies
    2
    Views
    449

    Re: Edit cursor dissapears when typing.

    Hi Lester,
    How strange? Yes it does, and then I can click anywhere on the page and the cursor comes back when I click in the edit area.
    Thanks!
  176. Replies
    2
    Views
    449

    Edit cursor dissapears when typing.

    Has anyone else noticed over several months now that the flashing cursor dissapears when entering text in the forum text editor so you cannot see where you are entering or ammending text. This has...
  177. Replies
    14
    Views
    702

    Re: 18F14K50 BNF and USB

    Thanks Tim, I'm having a better day today, well so far anyway.
    I found the article on the WIKI but the file link is dead.
    The files are on the download area as 6670-USB Bootloader Files.zip.
  178. Replies
    14
    Views
    702

    Re: 18F14K50 BNF and USB

    Does anyone have any suggestions for a USB bootloader that I can program into the 18F14K50 using my PICKit2 ģ

    Sorry if this sounds lazy but I have spent hours researching and getting nowhere fast
  179. Replies
    11
    Views
    540

    Re: Very high precision heater element control

    Hi Tim,
    The technical term for the methods describes above is "Burst Fire", rather than "Phase Angle". This is more suited to heater control than phase angle. The RFI is very low compared to phase...
  180. Replies
    13
    Views
    907

    Re: Problem USB PIC18F25K50

    Working on a 18F14K50 for a couple of hours and getting the same 'device not recognised' message. The fault turned out to be a dodgy 12MHz crystal. Using my code the 'tell tale' LED was pulsing at...
  181. Replies
    14
    Views
    702

    Re: 18F14K50 BNF and USB

    Thanks Harm, I searched my C: Drive but cannot find the BNF that I am looking for. I'll send a PM
  182. Replies
    14
    Views
    702

    18F14K50 BNF and USB

    Hi all, Just returning to coding after a few months absence!

    I am trying to create a BNF for the 18F14K50 in preparation for a USB project but I am struggling to get PDF Now to convert the data...
  183. Replies
    11
    Views
    1,150

    Re: CCP2 and RB3 pin problem with PIC18F25K50

    I have to agree with Les!

    I was thinking of upgrading Proteus to the latest version, mine is a couple of years old, but after loosing many hours trying to find a coding fault simulating an...
  184. Replies
    53
    Views
    3,471

    Re: Quiet on the forum

    Old Codgers huh?

    My first computer was a Rockwell AIM 65 based on the 6502 . It only had an 80 character VFD display and a thermal printer, assembler only, no BASIC as I couldnlt afford the PROM....
  185. Replies
    27
    Views
    3,723

    Re: PicKit2 doesn't support 18F66K80 series

    I'm about to order some 24K50's I don't need the extra pins but it looks easier to work with.
  186. Replies
    27
    Views
    3,723

    Re: PicKit2 doesn't support 18F66K80 series

    In that case I will have to find a different device as I need USB, the board that I am driving and the LCD needs 5v and I don't want to use level shifting.
  187. Replies
    27
    Views
    3,723

    Re: PicKit2 doesn't support 18F66K80 series

    Thanks Henk57
    The information in #15 gave me the information that I needed to change 18F14K50 VDD to 5.0 volts.
    The only thing I could not find in the data sheet is what VddErase should be set for,...
  188. Replies
    3
    Views
    916

    Re: Bin Hex Dec Can't Download

    I use Windows own calculator. Open , press ALT + 3 to enter programmer mode.

    You can enter binary, hex or decimal values and the binary value is shown underneath formatted as 4 bit nibbles or by...
  189. [SOLVED !] Re: Simple code to learn interrupt use with Amicus18

    Hi Les,

    Unless I need USB then I do most of my development work using an 18F25K22 prototype board with compiler version 3.5.8.1



    Does this mean that there are better ways then using the...
  190. Replies
    29
    Views
    3,697

    Re: Pulsein minimum value

    Is there a constant stream of data or only when something changes?
  191. Replies
    29
    Views
    3,697

    Re: Pulsein minimum value

    Good news!, and nice coding Tumbleweed. Lots of comments to make things clear, something I should do more often!
  192. Replies
    29
    Views
    3,697

    Re: Pulsein minimum value

    Hi John,

    It is a little bit more complex than the SL490 chip. I think CCP set to capture both edges is probably the best way to do it without using some external electrickery.

    At a rough...
  193. Replies
    29
    Views
    3,697

    Re: Pulsein minimum value

    Hi John,

    Do you know how the code train is generated?

    The capture looks like simmilar to the pulse train generated by early remote controls like the Plessey SL490B
  194. Replies
    29
    Views
    3,697

    Re: Pulsein minimum value

    I did this a while back, but not measuring such short pulses. If I remember correctly, as each interrupt is detected the CCP mode select bits are set to detect the opposite edge before the interrupt...
  195. Replies
    7
    Views
    1,410

    Re: Detecting if USB unplugged

    OK, thanks for the information. The device is currently a 18F4455 so I think I will go for the pin detect as it is much easier to implement and potentially fewer problems.

    USBpoll in the...
  196. Replies
    7
    Views
    1,410

    Re: Detecting if USB unplugged

    Thanks, yes, I saw that already.
    This morning I have more time to play so from line numbers 87 & 89 of the USB_Dev.inc as a test I tried

    If USB_bDeviceState = cDETACHED_STATE Then
    Print at 2,1,"...
  197. Replies
    7
    Views
    1,410

    Re: Detecting if USB unplugged

    OK, a bit more information.

    The PC side is written in Delphi which has Notify_Plugged and Notify_Unplugged and I am looking simmilar in Proton.

    The PIC has it's own supply and is not allways...
  198. Replies
    7
    Views
    1,410

    Detecting if USB unplugged

    What is the best way to detect if the USB cable has been unplugged please?

    I am using an interrupt to keep the HID connection alive and the power for the PIC is not from the USB lead.
  199. Thread: Bitscope Micro

    by See_Mos
    Replies
    2
    Views
    593

    Re: Bitscope Micro

    Hi George,

    The main part has a relatively thick heatshrink cover so it can be used without a case. Without the BNC adaptor it's only a bit fatter and slightly longer than my middle finger. I...
  200. Thread: Bitscope Micro

    by See_Mos
    Replies
    2
    Views
    593

    Bitscope Micro

    I Needed a replacement for my old Poscope Basic, because there are no drivers for Windows 7 and compatibility mode did not work , I remembered the Bitscope Micro. The price is about the same but the...
Results 1 to 200 of 1000
Page 1 of 5 1 2 3 4