Search Results - Proton BASIC community web site


Search:

Type: Posts; User: pic-ignorant

Page 1 of 5 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    6
    Views
    147

    Re: New CAN Library

    Hi Bob,

    I've got some 18F46K80's you could have had. Do you have some 10uF X7R caps for the VDDCore/Vap? I use my 18F46K80's in breadboards, so I soldered the caps to the top of the pins to keep...
  2. Thread: Hi All

    by pic-ignorant
    Replies
    10
    Views
    91

    Hi All

    Hi all,

    Hope everybody is well.

    Been really busy with life/work etc. I received an email with a polite hint that I need to post more often to not get my account deleted. So, here is a post!
    ...
  3. Replies
    5
    Views
    62

    Re: 18f4331 LCD Woes

    Thank you for all the replies.
    Bit embarrassed about this one. The problem turned out to be hardware. I am using a PIC DIP40 board from ebay, the board is great, only flaw is the ICSP connector is...
  4. Replies
    5
    Views
    62

    18f4331 LCD Woes

    Morning All,
    It's been a while! I'm stuck on the simplest of things. I'm trying to print to a 4x20 LCD using a PIC-DIP40 board. Code below. I know the LCD is ok, because I have swapped out the...
  5. Re: Half Hourly 3phase electricity meter ready

    Thanks for the replies guys. There is a RS485 port on the meter Rick, but its under a cover with a tamperproof seal, so I can't access it. I like the camera idea, but I need to scroll through the...
  6. Half Hourly 3phase electricity meter ready

    Just wondering if anybody knows if it is possible to read the GSM signal from electricity meter for the purpose of monitory consumption. Apart from being difficult to read the meter, it is at the far...
  7. Replies
    13
    Views
    39

    Re: Cheap programmer or waste of money

    Iíve been using Pickit 3 to program DSPIC33EP512MU810 via Mplab X IPE. Admittedly, Iím also coding in C with Mplab XC16 compiler, but it works ok. I havenít tried it Bob, but you could probably...
  8. Replies
    3
    Views
    22

    Re: Super capacitors & solar energy

    Thanks for the replies. I bought a couple of super caps, one was 500F. Using my bench psu, set to 2.6V with current limiting set to 250mA, it took a long time to charge up fully.
    There is plenty of...
  9. Replies
    19
    Views
    54

    Re: Diffuser IR Leds (how)

    What is the distance between the IR emitter & receiver Tim? If the receivers are close to each other, would the IR beam not spread across several receivers anyway?
  10. Replies
    3
    Views
    22

    Super capacitors & solar energy

    Long story short, just bought a ew factory with a huge enclosed car park. The problem is, the car park is not connected to the factory, and has no power for CCTV, lighting etc. I had a quote of...
  11. Replies
    37
    Views
    92

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

    I bet you could polish that dance floor back in the day John,
  12. Replies
    2
    Views
    64

    Library Loader

    Evening all, its been a while. I was going to post a earlier in the week, but it took 2 days to read the new forum rules.

    Has anybody tried the Samacsys Library Loader? I was quite excited when I...
  13. Replies
    12
    Views
    101

    Re: Simple cheap dev board needed

    I use these,
    http://www.ebay.co.uk/itm/Mini-System-PIC-Development-Board-Microchip-PIC16F877-PIC16F877A-USB-Cable/141014108026?hash=item20d518877a:g:xs0AAOxy2CZTXjvT
    and these...
  14. Replies
    5
    Views
    97

    Re: CAN commands files from Wiki??

    If you manage to get CAN running on the DSPIC33 Bas, I have hardware to test it on. I think it will be quite a challenge though
  15. Replies
    5
    Views
    97

    Re: CAN commands files from Wiki??

    I don't think they will work with the DSPIC33 Bas. Bob (RGV250) should be able to confirm. The DSPICs use DMA transfer which isn't the easiest thing to get your head around.

    ~John
  16. Replies
    7
    Views
    77

    Re: Macro questions

    ah ok that would explain why I cant find it
    thanks John
  17. Replies
    7
    Views
    77

    Re: Macro questions

    Could you point me to the MacroGenerator plugin please John?
  18. Replies
    11
    Views
    74

    Re: Chip needed

    Hi Bob,

    Might be slightly off track of what you had in mind, but I have used the STP08CP05 SPI led driver in the past. Quite easy to use, and has some useful features.
    ...
  19. Re: 18F4580 LCD on PORTD Lower Nibble 4 Bit

    Thanks Les, I forgot about that feature
  20. Re: 18F4580 LCD on PORTD Lower Nibble 4 Bit

    Unplugging the LCD & jumpering it as you suggested did the trick Rick thank you!
  21. Re: 18F4580 LCD on PORTD Lower Nibble 4 Bit

    Thanks for the confirmation Rick, much appreciated as always.
    I am using this dev board at the moment. https://www.nextiafenix.com/producto/pic-dip40/
    They're not brilliant, but they are cheap....
  22. Re: 18F4580 LCD on PORTD Lower Nibble 4 Bit

    Hi Rick,

    I was hoping it was that too, but I have CMCON = 7, which should disable both comparators.

    Duh, I think you've hit the nail on the head Rick. The dev board has the LCD permanently...
  23. 18F4580 LCD on PORTD Lower Nibble 4 Bit

    Good morning all,

    I have a 4 x 20 LCD working fine on an 18F4580 in 4 bit mode on the upper nibble. PORTD.0 -7 match up with LCD Data 0-7 lines. For some reason it doesn't work on the lower...
  24. Re: New error message in fuse configurator MK2

    Hi John,

    I noticed a possible anomaly with the MK2 Fuse Configurator. I declared device as 18F46K80, and the configurator gave config settings for the device's big brother the 18F66K80. I was able...
  25. Replies
    6
    Views
    102

    Re: 18F4580 CAN Bus & HBUSOUT

    Thank you all for your replies. I swapped out the pic for another reason and it is working now. Bizarre!

    I've managed to get a node working with a ISO1050 isolated CAN transceiver Bob. Originally...
  26. Replies
    6
    Views
    102

    Re: 18F4580 CAN Bus & HBUSOUT

    Thanks Rick, I will give that a go. I did try just moving the I2C subroutine to the top, but that made no difference. I will try putting them all up top though.

    Hi George, that line is ok. The...
  27. Replies
    6
    Views
    102

    18F4580 CAN Bus & HBUSOUT

    Good afternoon all.

    I have 3 PIC18F4580 boards swapping data via CAN bus quite happily.
    I have added a known working MCP23017 I2C Port expander sub routine at the bottom of the code and it...
  28. Re: New error message in fuse configurator MK2

    Hi John,

    I did manage to get it working in the end thank you. It was a permissions issue with the existing account. I was given the pc for free, and it already had another admin on it.

    BR John
  29. Re: New error message in fuse configurator MK2

    Thanks for the prompt reply John. I have tried running as admin, but no joy yet.
  30. Re: New error message in fuse configurator MK2

    I have just installed PDS on another laptop due to wobbly USB ports on my old one. When I try to install The Fuse Configurator MK2, I get the following message:

    "This version of setup requires a...
  31. Re: New PIC18 K83 family with CAN and Core Independent Peripherals

    And it uses DMA for which there is very little documentation in PDS, so I will be sticking to the conventional 18F CAN Pics for the foreseeable future.
  32. Replies
    21
    Views
    88

    Re: Signal ground throuh output pin

    Hi Bob,
    hope you get sorted soon mate. Are you in a local hospital?

    Best regards
    John
  33. Replies
    21
    Views
    119

    Re: First attempt at using Preprocessor

    Not sure how this got from CAN to Bluetooth, sorry Bob!

    I've been using the HM-10 BLE module on the Arduino recently. Quite easy to use with the IPhone/Ipad. 2 I/O plus Vcc/Gnd. I haven't tried...
  34. Replies
    6
    Views
    32

    Re: Drill press jam cut out

    Another drill grinding top tip that I use when teaching our trainees how to grind drill bits.
    To check if you are grinding the drill bit to the normal 120 degree angle, hold 2 nuts side by side with...
  35. Replies
    6
    Views
    32

    Re: Drill press jam cut out

    In our factory, we have a strict policy regarding safe clamping of the work piece on drill presses. Get caught 3 times and your out the door.
    How you grind the drill bit makes a big difference too. ...
  36. Re: Waterjet cutter built with a cheap pressure washer

    It doesn't act as a coolant on an industrial machine Shantanu. There is a 10 thou orifice behind the nozzle that focuses the water into a tiny needle-like jet before it passes through the mixing...
  37. Re: Waterjet cutter built with a cheap pressure washer

    That's not bad for a home brew set up Norm. We have had 2 WaterJet machines in our factory during the last 10 years. One runs at 65000 psi, and the other at 75000 psi. The most impressive thing we...
  38. Replies
    1
    Views
    49

    I2C Lcd Print & Owrite

    Afternoon all,
    I have a PIC-DIP40 board set up with an I2C backpack using George's I2C-LCD code and a DS18B20 temperature probe. The DS18B20 is hardwired to RC3 (I2C_SCL).

    My main loop looks like...
  39. Replies
    2
    Views
    108

    Re: Testing Bits of a register.

    Thanks Les! I'll give that a go.
  40. Replies
    2
    Views
    108

    Testing Bits of a register.

    Hi all.

    I am trying to convert this C statement into basic. "while (SPI_ReadStatus() & 0x54)". 0x54 in binary is 0101 0100. I need to test bits 2, 4 and 6 any if any of the bits are set, then...
  41. Re: 18F4550 'Verification of Configuration Failed'

    Hi Stephen, thank you for your code. Am I right in saying you used that for a DIP40 package?

    George is dead right about ICPRT Config.
    I am using a 18F4550 in a TQFP-44 package. ICPRT On...
  42. Re: 18F4550 'Verification of Configuration Failed'

    Hi George, thanks for the reply.

    I wasn't aware that configuration bits vary between package types for the same device! I don't think the fuse configurator has the option to cater for that. I a...
  43. 18F4550 'Verification of Configuration Failed'

    Mornin' all.

    I am writing some code for a MCP2515DM SPI-CAN eval board that is populated with a 18F4550. Every time I program it,(pickit2 or pickit3) I get the message 'Verification of...
  44. Re: DSPIC33EP512MU810 How to use Hardware SPI can SPI_24.inc be used for 33EP512MU810

    Hi Matty,
    I don't think the Code Configurator works with DSPIC33, unless there has been an update since I last used it.
    Unless you really like a challenge, I would avoid using the SPI with DMA if...
  45. Re: Replace the PRINT command to use I2C backpack on 1602 LCD

    I'm a bit late to the party George, but you've done a brilliant job of the I2C Backpack code. just set one up here, and I had it working within 15 mins.

    Regards
    John
  46. Re: Has anybody manged to get proton to integrate with MPLAB X?

    Hi Ian,
    I had similar woes with the pickit3. One workaround is to compile in PDS, then use the pickit3 via Mplab x IPE. From memory, the IPE recognised when the .hex was updated by PDS, and...
  47. Replies
    4
    Views
    578

    Re: No dongle compile of PIC18F14K50

    Just downloaded the latest version Tim. Mine won't compile 18F14K50 without dongle either
  48. [SOLVED !] Re: Input Capture only working with one pin at a time Help!

    I'm thinking that you would be better off using a Dual QEI DSPIC or similar.
    The only problem with input capture/interrupt pin is that you will be spending a lot of time in an interrupt.

    You can...
  49. Replies
    1
    Views
    128

    Re: RegName_bits

    Some progress from opening the Device .def file in Notepad.

    I can get AMODE to compile ok, but there is an extra underscore in MODE. See Below. Is this a typo?

    ' DMA1CON Bits
    $define...
  50. Replies
    1
    Views
    128

    RegName_bits

    I am playing with DMA registers and I'm not sure of the correct syntax for addressing individual bits of a register. Code is below

    The first 5 lines are recognised by the compiler ok, but the last...
  51. Replies
    16
    Views
    775

    Re: Best programmer for new PICs

    I broke mine badly John, pulled a pin off too!
  52. Replies
    0
    Views
    129

    Possible Proton 24 Manual Typo?

    Les, is this a Typo in the manual?

    Page 214:
    Creating variables in DMA RAM
    Some PIC24ģ and dsPIC33ģ devices have an extra area of RAM dedicated to DMA (Direct
    Memory Access) operations. It...
  53. Replies
    16
    Views
    775

    Re: Best programmer for new PICs

    Thank you for all your replies. I managed to program a DSPIC33EP512MU810 with my Pickit 3 using MPLAB 8.92, but no success with MPLABX/IPE. MPLAB is fine though.

    That's the upside, the downside is...
  54. Replies
    16
    Views
    775

    Re: Best programmer for new PICs

    One issue I often came up with was an error message saying the IPE can't connect to the Pickit3. (May not be the exact wording of the message)
    I had a lot of problems with connecting to PIC33...
  55. Replies
    16
    Views
    775

    Best programmer for new PICs

    I've looked through the forum for ideas on the best programmer to use now as I'm struggling with new devices. It took me a morning to figure out how to get the Microchip Curiosity board working with...
  56. Replies
    9
    Views
    944

    Re: Olympus EMedia E 20P

    I bought a camera from ebay the other day, but apparently its too old to take an SD card, so I made a lamp out of it instead

    3244
  57. Replies
    4
    Views
    381

    Re: installing latest update

    sorted. I had to change the file extension to .exe before downloading
  58. Replies
    4
    Views
    381

    installing latest update

    probably me being dumb, but can somebody tell me how to get the new compiler update into an installable state pls?

    It downloads as a .PHP file on my pc. What do I do with it now?

    Thanks
    John
  59. Replies
    13
    Views
    1,333

    [SOLVED !] Re: A new project of PCB using 18F4xK20.

    Just a thought.
    If you are going to the trouble of having a board made, why not accommodate a 64 pin DIL socket, so a 64 pin TQFP to 64 pin DIP adapter pcb can be used to explore other pics that...
  60. Replies
    44
    Views
    3,058

    Re: A Universal PIC18 Bootloader for PDS

    Good job Alberto! It looks like a lot of work went into that!

    I couldn't see the published article in the wiki.

    Regards
    John
  61. Replies
    1
    Views
    514

    2D Byte Array Command

    Les,
    Would it be difficult to create a 2D Byte Array command as used in C?
    Something like this.

    Dim My2DArray [2][8] as byte

    {0x10, 0x18, 0xc3, 0x33, 0x02, 0x08, 0x00, 0x94},
    {0x10,...
  62. Re: Quiet on the forum. CAN Bus Interrupt Query

    Thanks for the replies Les & Bob,

    I think you are right Bob, I have read further into it ad it makes more sense now, although there is a lot to learn still.
    I read a Microchip app note recently...
  63. Replies
    53
    Views
    3,491

    Re: Quiet on the forum

    My wife has been going on about selling & moving house for about 15 years. That's usually my cue to turn up the tv or suddenly remembering I have an errand to run or something.
  64. Re: Quiet on the forum. CAN Bus Interrupt Query

    Hi Les,

    Maybe this question will get the forum rocking!

    I have a couple of 18F4580 CAN Nodes talking to each other. Occasionally, 1 of them drops off the bus, which I haven't got to the bottom...
  65. Replies
    19
    Views
    3,068

    Re: Availability of Amicus24

    Same problem Bob
  66. Re: Multi-Bit register definitions not recognised by compiler?

    Thanks Dave,
    I didn't think about looking there.
    Referencing register sections with multiple bits in one command would be a nice compiler feature though.

    Regards
    John
  67. Multi-Bit register definitions not recognised by compiler?

    Good morning all,

    I'm trying to port some CAN Bus code over from C to PDS. Single bit definitions in registers seem to be ok, but 'multi-bit' doesn't seem to be.
    Example below: IDE Version:...
  68. Re: PIC24H ADIn Demo (why no PPS for Hrsin)

    Hi Bob,

    Maybe I'm misunderstanding your question, but would you need HRSIN if you are just spewing out A/D values to a serial terminal?
    Regards
    John
  69. [SOLVED !] Re: 33EP512MU810 Tripple Processor System Working well Communicates at 920Kb+

    All working now. I have 2 hid boot loaders, the one I was having problems with is the MLA bootloader. The other one is fine
    Thanks Matty!
  70. [SOLVED !] Re: 33EP512MU810 Tripple Processor System Working well Communicates at 920Kb+

    Does your bootloader program crash Matty? Maybe it's just my laptop, but mine crashes a lot, and I have to stop the process in windows and restart it.

    Rgds
    John
  71. [SOLVED !] Re: 33EP512MU810 Tripple Processor System Working well Communicates at 920Kb+

    Thanks Matty,
    That's the same bootloader I used. (Which works) I'll try again with the Pickit 3 over the weekend. It would be useful to be able to reflash the bootloader if required

    Regards
    John
  72. [SOLVED !] Re: 33EP512MU810 Tripple Processor System Working well Communicates at 920Kb+

    Hi Matty,
    I got the boards. What are you using to program them? I haven't managed to get my Pickit 3 to communicate with it using the Standalone GUI or in MPLAB. I did download a Microchip...
  73. Re: Trying to access internal oscillator 12F675 conundrm

    Have you tried the Fuse Configurator Glenlivet?
  74. Replies
    6
    Views
    1,107

    Re: Pickit 2 not playing fair

    Maybe oohing to do with your problem Bob, but I have had similar issues with the 26K80 when I also used the pickit clock & data pins to sink LEDs. They were only drawing a few mA, but it was enough...
  75. Replies
    4
    Views
    1,459

    [SOLVED !] Re: My own 18f452 dev. board

    Good job Mahmood!
    You could maybe sell some on eBay.
  76. Replies
    1
    Views
    503

    3000 Posts!

    I cant believe that I have over 3000 posts in nearly 10 years!

    My estimation is that I have taken 99.99% from this forum and given 0.01% back. (Hangs my head in shame) So I have a net worth of 3...
  77. Re: delayus problem - please help / explain - PIC16F1939

    Kuhrig,
    I haven't used that device before. Have you double checked your OSCCON setting to make sure it matches XTAL= 4?
    What happens if you disable the WDT and toggle and led in a 1000mS loop?...
  78. [SOLVED !] Re: 33EP512MU810 Tripple Processor System Working well Communicates at 920Kb+

    Sounds like you're having fun Matty!
    Thanks for the link to the boards, I've just ordered some. I've struggled to find a simple solution for DSPIC33 series.
    Regards
    John
  79. [SOLVED !] Re: 33EP512MU810 Tripple Processor System Working well Communicates at 920Kb+

    Good job Matty!
    Can I ask What dev boards they are?
  80. Replies
    14
    Views
    2,581

    Re: Microchip AN1310 - BootLoader

    I haven't done it for a while Ricardo, but it is quite easy.

    Download AN1310 application from Microchip and install it. Go to C:/Microchip solutions/Serial Bootloader AN1310_V1.05 and click on the...
  81. Replies
    17
    Views
    2,164

    Re: Opinions required

    Just thinking how you would make this book stand out from the other paper/online publications available.

    What kind of audience would you be aiming for? A lot of newcomers are interested in...
  82. Replies
    51
    Views
    6,274

    [SOLVED !] Re: Button Debounce

    Good job Alberto!
    I hadn't thought of debouncing switch states in both directions until an EMC test a couple of years ago, but it is often forgotten.

    Regarding RMW & delays between switching...
  83. Replies
    51
    Views
    6,274

    [SOLVED !] Re: Button Debounce

    I believe that depends on the amount of capacitance on the pin and the clock speed Joseph. I tried a few uS, and it seemed to work ok in my case, so I used 10uS to be on the safe side.
  84. Re: Debouncing 8 inputs by interrupt Wiki article

    I was just looking through your debouncing code in the Wiki Alberto, looks like a really good piece of code & documentation. That must have taken quite a while to do!

    ~ John
  85. Replies
    51
    Views
    6,274

    [SOLVED !] Re: Button Debounce

    Hi Steve,
    I believe the RMW issue has been mentioned in an earlier post, and it can definitely be a problem if you are switching port bits in succession without a small delay between the...
  86. Replies
    51
    Views
    6,274

    [SOLVED !] Re: Button Debounce

    How do you power the relay coils? I'm guessing they are switched via npn transistor to 0V?
    If so, do you have a pull-down on the base?

    Watchdog is quite easy to use. Just enable it, and set the...
  87. Re: Has anybody manged to get proton to integrate with MPLAB X?

    I may have to bow to your superior knowledge Tumbleweed, as I can't get my 33EP pic to program with the pickit3, but somehow I managed to write C code for it a while ago and upload it too.
  88. Replies
    51
    Views
    6,274

    [SOLVED !] Re: Button Debounce

    Hi Steve,

    I've only put 2 products through EMC, 1 at commercial level, and 1 at the higher industrial level, so I am no expert, but both products passed.

    The key to success is a combination of...
  89. Re: Has anybody manged to get proton to integrate with MPLAB X?

    That's interesting. I have a few of the larger 33EP devices, and I'm sure I was able to program them with a Pickit 3. Via my explorer16 board. You have me doubting now. I will experiment when I get a...
  90. Re: Has anybody manged to get proton to integrate with MPLAB X?

    I don't doubt that there may be a few obscure pics that are not programmable with a pickit, but I can't say I have ever come across one myself.
  91. Re: Has anybody manged to get proton to integrate with MPLAB X?

    I never bother trying to add the Pickit 2 or 3 to PDS as a programmer.
    I just open the Pickit Standalone GUI as Les suggested then point to the hex file created by PDS. When you recompile in PDS,...
  92. Replies
    12
    Views
    1,921

    Re: Where is Fanie?

    Did you try here Ken? I think he has a new website.
    http://www.dizzy.co.za/contact.asp
  93. Replies
    16
    Views
    2,831

    Re: How to Enable SDO2 16F26K22?

    Have you tried using the SPI Include, rather than setting up manually?

    Include "SPI.inc"
  94. Replies
    16
    Views
    2,701

    Re: New location for my tools

    I keep mine in the shed Harm :)
    Top tip: Spray a little WD40 on them in the winter stops them going rusty
  95. Replies
    32
    Views
    3,194

    Re: Voltage limiting to an A/D port

    If you can spare a couple of mA of bias current Tim, a TL431 (precision programmable shunt) will limit the over voltage quite nicely.
    I've been using one albeit with a power stage added to limit...
  96. Thread: SPI Macro

    by pic-ignorant
    Replies
    8
    Views
    1,355

    Re: SPI Macro

    Teo,

    I can get it to compile if I add include "amicus18.inc". I am wondering if SPI.inc only works with the Amicus18?
  97. Thread: SPI Macro

    by pic-ignorant
    Replies
    8
    Views
    1,355

    Re: SPI Macro

    Thanks for the confirmation Les
  98. Thread: SPI Macro

    by pic-ignorant
    Replies
    8
    Views
    1,355

    Re: SPI Macro

    Don't forget to add: Include "SPI.INC" near the top of your program Teo
  99. Thread: SPI Macro

    by pic-ignorant
    Replies
    8
    Views
    1,355

    SPI Macro

    Les,

    Does anybody know If the SPI macro Is still used In PDS? No sign of anything In the helps files.
    include "SPI.INC" does bring highlight, and the commands can be seen in the Code Explorer.
    ...
  100. Replies
    8
    Views
    2,096

    [SOLVED !] Re: Bootloader

    Have you got a pickit2 or 3 Jim? If so, you could program the bootloader into a blank pic
    ~John
  101. Replies
    6
    Views
    1,683

    Re: My set up almost done

    Nice Job Steve.
    Any chance of a video of your masterpiece in action?

    I have been looking at a stepper motor solution to build a robot arm. One of our welders was paralysed down one side in a...
  102. Re: TC77 Temperature Sensor Interface Wiki article

    Hi Les,
    Thank you for the interesting article. Can you advise how to use that routine if a timer interrupt is enabled? Would an interrupt mess up the reading? I've always been a bit nervous of soft...
  103. Replies
    7
    Views
    1,932

    Re: 16F88x print issue

    Hi GME,
    It's a good habit to set the pic up first, so that all unrequired analogue and comparator pins are set up as digital.
    On that pic, you can use 'ALL_DIGITAL = TRUE. On the higher end...
  104. Replies
    14
    Views
    2,530

    Re: Availability of Amicus board?

    Hi Les, what is the difference between that board and the Firewing?
  105. Replies
    6
    Views
    1,025

    Re: Proton24 and Firewing

    I'm not too sure Bob. I only played with the Firewing boot loader briefly. I have both R1 & R2 boards. One worked ok, but the other didn't. Haven't used it recently due to other stuff. I believe the...
  106. Replies
    6
    Views
    1,025

    Re: Proton24 and Firewing

    Comms should work ok bob. I've used the RTCC demo in the samples folder, and that outputs to a serial terminal ok
  107. Replies
    6
    Views
    1,025

    Re: Proton24 and Firewing

    Hi Bob,
    One thing to bear in mind is that there are 2 different versions of the Firewing Board. I had trouble getting Les's led code to work a while ago, and it turned out that I was using the...
  108. Replies
    11
    Views
    6,365

    Re: MSSP1 and MSSP2

    Hi Jom,
    Have a look at a darasheet for a i2c eeprom such as a 24LC128 for details of the control byte.
    Regards
    John
  109. Replies
    3
    Views
    1,050

    Re: Language Translator

    I thought I was just amusing myself, but if it got a few laughs on the forum too, then that's all good.

    I reckon Lester had a little laugh too, but he's the boss, so he can't show it :)
  110. Replies
    3
    Views
    1,050

    Language Translator

    Hi Lester,

    I'm not sure the language translator is working properly.

    Referring to some code I wrote that's not working as expected, I typed "Hi All, the most strange thing happened"

    I...
  111. Replies
    10
    Views
    3,525

    Re: Using the PWM command or CCP?

    The 16f690 has an ECCP module. therefore it can output PWM on any one or more of the pins allocated to P1A,P1B,P1C,P1D or a combination at the same time.
  112. Replies
    10
    Views
    3,525

    Re: Using the PWM command or CCP?

    Sounds like a good project for a 16F690 or similar with a ECCP Module.
    Set up the timer to desired timebase to achieve the required frequency, set up duty cycle to be variable or fixed, then use...
  113. Replies
    3
    Views
    997

    Re: Security key not there for 16F/18F

    Hi Charlie,
    depends on which PIC24 you are using. If its the 24HJ128GP502, it doesn't need a key. I think there are a couple of other PIC24s that are free too.

    Rgds
    John
  114. Replies
    57
    Views
    9,344

    [SOLVED !] Re: Advice on Start bits

    Thank you very much for that Charlie, much appreciated.
    I'm looking through the datasheet, and I can't see a pinout for CN4. I'm guessing that is what you are using?
  115. Replies
    57
    Views
    9,344

    [SOLVED !] Re: Advice on Start bits

    Hi Tony, Charlie,

    I have got UART1 & UART2 working on a PIC24HJ128GP502,(Firewing board) just sending to the Serial Communicator, not connected the HVC board yet. I was reading through the posts,...
  116. Replies
    57
    Views
    9,344

    [SOLVED !] Re: Advice on Start bits

    Hi Tony,
    Thank you for your offer. Charlie sent me the details earlier. I may call on you if I cant get it working though!

    Rgds
    John
  117. Replies
    57
    Views
    9,344

    [SOLVED !] Re: Advice on Start bits

    Hi Tony,

    I got the board today, but I'm not having much luck finding an English datasheet. I went to the URL on the box, created account etc but it is all in Japanese too. :(
    To summarize,...
  118. Replies
    13
    Views
    2,592

    Re: Pic to Pic SPI

    Barak, you are a genius! Thank you! I have the Dword counting past 5,000,000 now and still reading the same on both lcd's.

    Regards
    John
  119. Re: Using PID for Controlling a motor Speed - Can someone explain the basics?

    What kind of load are you driving? Light or heavy? I like stepper motors, but they are easy to stall.
  120. Replies
    13
    Views
    2,592

    Re: Pic to Pic SPI

    Duh, ty for pointing that out. Its working fine now!
  121. Replies
    13
    Views
    2,592

    Re: Pic to Pic SPI

    Psst John. You only need word vars, not dword you dummy!
  122. Replies
    13
    Views
    2,592

    Re: Pic to Pic SPI

    Thanks John,
    Reversing the TX byte order helped from 0 to 255, but then the slave count jumps from 255 to 77200 :(
    Any more ideas?
  123. Replies
    13
    Views
    2,592

    Re: Pic to Pic SPI

    Check the byte order
  124. Replies
    13
    Views
    2,592

    Re: Pic to Pic SPI

    Yes please!
  125. Replies
    13
    Views
    2,592

    Re: Pic to Pic SPI

    Want me to give you a clue?
  126. Replies
    13
    Views
    2,592

    Re: Pic to Pic SPI

    I have, but not sure what :(
  127. Replies
    13
    Views
    2,592

    Re: Pic to Pic SPI

    Hi John,

    Seems like you have done something really dumb in your code!

    Rgds
    John
  128. Replies
    13
    Views
    2,592

    Pic to Pic SPI

    Good afternoon Gents,

    I'm having a dabble with Master/Slave SPI between 2 18F4580 pics with LCDs, and printing the values on each LCD, which should match.
    Counting up from 0 - 255 with a byte...
  129. Replies
    57
    Views
    9,344

    [SOLVED !] Re: Advice on Start bits

    Thanks for the confirmation Charlie/Tony.

    Looks like the Firewing could be a suitable choice? 5V @ 500mA(USB) or 800mA ext psu, & 3,3V signals

    John
  130. Replies
    57
    Views
    9,344

    [SOLVED !] Re: Advice on Start bits

    Hi Charlie,

    Thanks for the reply. No problem regarding sharing the data, if you give it the thumbs up, I will order one and then have access to the data myself. What board are you using? I have a...
  131. Re: Instruction time dsPic 140.02 Mzh to control a WS2812

    I played with the timing, and I didn't find it to be as critical as the datasheet claimed.

    Easiest way is to use some nops and a scope to measure the waveform. Some of the basic commands will be...
  132. Replies
    57
    Views
    9,344

    [SOLVED !] Re: Advice on Start bits

    Thanks Tony,
    I understand the problem now.

    Charlie,
    Did you manage to get the sensor board working ok without the dev board? I'm still not sure if the sensor board only option includes the pc...
  133. Replies
    2
    Views
    855

    Re: Start with WS2812

    Hi Bas,

    Here is some very long winded code that runs some routines on a Neopixel-24 Ring.

    I won't take the glory for it, as I think I got the original code from the forum a while back.
    ...
  134. Replies
    57
    Views
    9,344

    [SOLVED !] Re: Advice on Start bits

    Thanks for the comprehensive reply Tony.

    FTDI do USB to Serial cables at 3.3V, bit pricey but as you said, the board is quite expensive so probably a safer bet than a fake one from Ebay.

    From...
  135. Replies
    57
    Views
    9,344

    [SOLVED !] Re: Advice on Start bits

    Hi Charlie,
    Did they give you a link to the PC software too? Would you mind PMing me the link to the software instructions so I can see what is involved?

    Regards
    John
  136. Replies
    57
    Views
    9,344

    [SOLVED !] Re: Advice on Start bits

    Hi Charlie,
    Did you get the demo software/licence key included? It looks like it the UART plug is a Molex type or similar, so it should be easy to connect a generic Ft232 converter

    Regards
    John
  137. Replies
    3
    Views
    1,190

    [SOLVED !] Re: PIC 18F8722 ECCP2 problems

    Nothing obvious sprung to mind yet.
    Config looks ok.

    Sorry,not much help

    John
  138. Replies
    57
    Views
    9,344

    [SOLVED !] Re: Advice on Start bits

    I love your robot work Tony, unfortunately the wife said I can't have one :(

    I can't figure out why the Dev board is £370 extra if it is basically just a FT232 serial converter. Does the basic...
  139. Replies
    10
    Views
    3,797

    Re: Async comms using internal oscillator

    Hi George,

    I think I gave my opinion in a somewhat confusing manner. I have a couple of products using 16F series PICs, and like yourself, I have had mixed results with INTOSC & UART.
    With the...
  140. Replies
    10
    Views
    3,797

    Re: Async comms using internal oscillator

    I have used the 18F series with INTOSC George, but I think a 16F690 might be pushing your luck a bit.
    I always use the hardware peripherals where possible, especially if I have a timer interrupt...
  141. Replies
    1
    Views
    975

    Serial HMI

    G'evening all,

    Seeing Harm's Serial Communicator app (Good job btw Harm!), reminded me of something I would like to do.

    I would like to create a Human Machine Interface where I could set some...
  142. Replies
    12
    Views
    3,246

    Re: HPWM on a 18F1320, not as expected...

    Hi Eriond,

    All may not be lost, it depends what you are doing with the leds. According to the datasheet, you can enable PWM output on RB6 & RB7 (P1C & P1D) if ECCP1 module is in Quad Bridge Mode....
  143. Replies
    53
    Views
    16,251

    [SOLVED !] Re: WS2811/12 Help!

    Thanks for the reply Norm. Unfortunately I seem to have broken the neopixel ring. Probably due to the roughly knocked up prototype. When the new one arrives later this week, I will try it out.
    ...
  144. Replies
    53
    Views
    16,251

    [SOLVED !] Re: WS2811/12 Help!

    I got my Neopixel 24 ring working well thanks to Ametuerje's code.

    I have a group of 4 green leds running in a continuous circle using code like the snippet below.


    Is there a shorter way of...
  145. Replies
    17
    Views
    3,047

    Re: Pins remain High when Micro is flashed

    Glad you fixed it Charlie.

    LAT refers to the Port Latches on 18F devices. Switching port pins that have any kind of capacitive loading on them can cause the Read/Modify/Write problem as George...
  146. Replies
    17
    Views
    3,047

    Re: Pins remain High when Micro is flashed

    This may not be your problem, but it is good practice to use PORTx.x for modifying inputs, but when modifying outputs, use LATx.x.

    Regards
    John
  147. Re: Clamping an A/D input signal without screwing with the result

    Have you looked at the TL431 Tim?
    It is a low cost programmable precision voltage shunt. If your clamp diodes raise the PIC Vcc voltage if an overvoltage occurs on the ADC pin (as you mentioned),...
  148. Replies
    42
    Views
    14,134

    Sticky: Re: CNC Machine

    I'm definitely Interested Les.

    I have a LPKF S102 that can mill a beautiful board to a high degree of accuracy, but I always have problems with soldering the SMD components due to not having found...
  149. [SOLVED !] Re: hello I invite you to join a group on facebook followers of Proton basic

    I have 3 daughters in their late teens/early 20's.shortly after It first came out, they were all sitting in their bedrooms have an arguement on Facebook. For me, this was beyond belief that they were...
  150. Replies
    9
    Views
    4,142

    [SOLVED !] Re: HPWM on 18F4685 fails?

    Had a brief look in the datasheet, hopefully something like this should get an output. (Requires the ECCP1 pin to be set as output)
  151. Replies
    9
    Views
    4,142

    [SOLVED !] Re: HPWM on 18F4685 fails?

    Hi Fregerd,
    Is there a particular reason you are using P1A of the ECCP module for PWM? If you used RC2 instead, you could use the standard HPWM command. As you see in the datasheet, the ECCP module...
  152. Replies
    9
    Views
    4,142

    [SOLVED !] Re: HPWM on 18F4685 fails?

    You don't need to set the ECCP registers unless you are setting up the pwm manually. If so, you also need to set up the relevant timer too, and a few other registers.

    If using the HPWM command,...
  153. Replies
    49
    Views
    8,429

    Re: PORT expansion Libraries

    The MCP23008 works well John, I have used that and the spi version many times.
  154. Replies
    2
    Views
    1,050

    Re: Duplicate variable name 'STATUS'

    Hi John,
    Status may not be a protected word in the compiler, but it is reserved in MPASM, as it is a register name.

    John
  155. Replies
    10
    Views
    6,051

    Re: Hardware SPI on a PIC24 device

    Did you try SPI2_Open, SPI2_Write, Read_SPI2 etc Norm?
  156. Replies
    6
    Views
    2,401

    Re: Basic version of LCD routine (needed)

    If I understand the problem right Tim, Les's LCD code was written for an early version of the Firewing board. I did modify the code for the current version and posted it on the forum
  157. Replies
    2
    Views
    1,115

    dip switch series resistor

    I've noticed that most designs with dip switches connected to Pic pins tend to have pull-ups (external or internal) on the inputs, but no series resistors between the Dip switch and ground.
    If you...
  158. Replies
    4
    Views
    1,896

    [SOLVED !] Re: Convert variable decimal to binary

    For DECvar = 0 to 255
    Print at 1,1, Bin8 DECvar
    delayms 100
    Next DECvar
  159. Replies
    4
    Views
    1,878

    Driving Leds on long traces

    Hoping to draw on some experience here.
    I am currently driving 8 IR leds individually with a STP08CP05 8 channel constant current SPI led sink driver. I feed a byte into the shift register, and...
  160. Replies
    3
    Views
    2,558

    Re: MSSP SPI codes for Amicus18

    Good work Alberto,

    That would make coding for Dwords very compact, compared to writing Xbyte.0, Xbyte.1, Xbyte.2, Xbyte3 etc
  161. Replies
    2
    Views
    1,222

    Shift Register & Eeprom on same SPI bus

    Probably a dumb question, but I have never done this before.
    I want to have a shift register and eeprom on the same SPI bus (with their chip select pins controlled separately)

    Will the...
  162. Replies
    10
    Views
    3,522

    Re: 18F4520 timing issue

    I think I have used that device many moons ago. Do you have a piece of code you can post?
  163. Replies
    10
    Views
    3,522

    Re: 18F4520 timing issue

    I left an 18F4520 in a damp place once Fanie, and the magic dust inside it got all clogged up. Try leaving it in a pot of salt overnight and try it again in the morning :)
  164. Replies
    9
    Views
    4,604

    Re: Anyone familiar with MAX7456 OSD?

    In addition to what John said, your Osctune setting looks wrong. I think you are running at 8Mhz not 32. To enable 4 x PLL you need
    OSCTUNE.6 = 1 (P27 of datasheet) the lower bits are for...
  165. Replies
    17
    Views
    2,335

    Re: Multiplexing 8 Uarts

    Thanks for the reply Charlie,

    Are you able to send out of uart1, and immediately receive the byte(s) into Uart2?
  166. Replies
    17
    Views
    2,335

    Re: Multiplexing 8 Uarts

    Hi David,
    Re Mux. There are 8 IRDA outputs going to 1 Uart
  167. Re: How to setup timer to generate an interrupt

    I do it something like this. Written off the top of my head, so hopefully no mistakes! It should regularly test the 4 inputs based on timer2.
    You then read the flags in your main code

    Depending...
  168. Replies
    17
    Views
    2,335

    Re: Multiplexing 8 Uarts

    On a slight tangent (I'm allowed to, it my thread! :) )
    I'm trying to figured out if the following is possible or not.

    Using a Pic with 2 Uarts, send a data byte from Uart1 through a MCP2122/IR...
  169. Replies
    17
    Views
    2,335

    Re: Multiplexing 8 Uarts

    Thanks David,Norm

    The 4512 looks promising.
  170. Replies
    17
    Views
    2,335

    Re: Multiplexing 8 Uarts

    Hi John, Bob,

    Thank you for the replies. I looked at the Maxim ic, was quite expensive though. The 4066B is a good price, I might look to see if there is an 8 way version. I don't need the TX...
  171. Replies
    17
    Views
    2,335

    Multiplexing 8 Uarts

    Just wondering if anybody has had any experience with multiplexing uarts?

    I want to receive 2 bytes of data from 8 MCP2122 IRDA Encoder/Decoders sequentially into 1 uart. The IR data would be...
  172. Re: IRDA Programmable Constant Current source

    Hi Rick,
    Do you think 38Khz PWM input will be too fast/slow for the PWM input? I would need to adjust the R/C filter value to suit of course. The reason I ask, is because I am using 38Khz as the...
  173. Re: IRDA Programmable Constant Current source

    That looks interesting Rick, ty for posting. I shall be digesting that with my morning coffee. Did you have a particular part inmind for U1?

    Thx
    John
  174. Re: IRDA Programmable Constant Current source

    Hi Rick,
    The led current is quite low. I can get the required range at around 5mA, but I would like to have a range from 0 to 40 mA. The supply can be 5V or 12V. I would prefer a linear output if...
  175. Re: IRDA Programmable Constant Current source

    The only part I can see a possible problem with is that I need to my load (led) to sink via the MCP2122 to ground. Will your circuit work like that?
    What I had in mind, was a floating constant...
  176. Re: IRDA Programmable Constant Current source

    Thanks for the reply Barak, I spent ages looking for a integrated solution, but I think your method is the way I need to go.

    Regards
    John
  177. IRDA Programmable Constant Current source

    Good day all!

    I am playing with some IRDA modules based on a MCP2122 and all is working well. However, I want to use standard IR Leds on the sender side with a programmable constant current source...
  178. Replies
    8
    Views
    3,993

    [SOLVED !] Re: Problems with 'intrc_osc_noclkout'

    The new manual states "If the Declare is not used in the program, then the default frequency will be of an unknown state."

    I guess there is a very good reason for that now

    John
  179. Replies
    23
    Views
    6,834

    Re: P-ICD new version

    Hi Dave,
    I can't explain why the debugger window won't open on my laptop, but it does on my work pc. Unfortunately, I didn't bring a suitable dev board to work to test it on, so I will try again...
  180. Replies
    23
    Views
    6,834

    Re: P-ICD new version

    I am going to try installing P-ICD on my work pc. Tried everything I can think of on my laptop, but still no debugging window :(
  181. Replies
    4
    Views
    2,985

    Re: Undiagnosed Problem with PIC18F46K80

    What was your original PIC? You appear to have quoted 18F46K80 twice.
    I recall that enabling XINST fuse can cause some unexpected problems
  182. Replies
    11
    Views
    8,497

    Re: PICD Unable to View

    Thank you for the suggestions. No success yet though. I have sent you an email John
  183. Replies
    11
    Views
    8,497

    Re: PICD Unable to View

    Thanks for the reply Dave,
    I get everything as you described above, except the main P-ICD program doesn't open.
    Not sure if this is relevant, but I always get a UAC notification when I open Proton...
  184. Replies
    11
    Views
    8,497

    Re: PICD Unable to View

    Hi George,
    I think it is something to do with permissions in my case. If I right-click on SOFT_ICD.exe from C:\Program Files (x86)\ ProtonIDE\Plugin\P-ICD, I can get a blank debugging window.
  185. Replies
    11
    Views
    8,497

    Re: PICD Unable to View

    Hi Dave,
    I have the same problem, but I'm not using multiple screens. I can program via PICD ok, I just don't get the debugging window.

    Dell Precision M6700
    Windows 7 Sp1.
    If I close PDS, PICD...
  186. [SOLVED !] Re: Help with RB Port Change Interrupt on 18F2620

    One thing I noticed is the delay inside the ISR, that should be removed. The ISR needs to execute as quickly as possible. You will also need a de-bouncing routine to handle switch bounce, and prevent...
  187. Replies
    1
    Views
    988

    Re: Crimp tool required

    Hi Bob,

    We use these at work. If you want to borrow a pair try out, let me know.

    http://static.rapidonline.com/catalogueimages/Module/M030535P01WL.jpg
  188. Replies
    15
    Views
    4,287

    Re: SPI Help Needed PLEASE ?

    I've used SPI.inc on several 18F devices, but I don't recall having to modify it.
  189. Replies
    17
    Views
    11,089

    [SOLVED !] Re: Pic 16F1937 to 6 Analog input in Pic basic

    Glad you got it working Hans.
    Could you post your working code so it might help others?

    Regards
    John
  190. Replies
    17
    Views
    11,089

    [SOLVED !] Re: Pic 16F1937 to 6 Analog input in Pic basic

    Just noticed a Vcap on RA5. Not sure how that works

    John
  191. Replies
    17
    Views
    11,089

    [SOLVED !] Re: Pic 16F1937 to 6 Analog input in Pic basic

    Nothing 'Very strange' about it Harm, its a simple mistake. :)

    As George said, Dim a Variable as ADRESL.word, then copy the result to the relevant variable.

    DIM AD_Result as ADRESL.word, then...
  192. Replies
    17
    Views
    11,089

    [SOLVED !] Re: Pic 16F1937 to 6 Analog input in Pic basic

    I knocked this up quickly, so it may have a mistake or 2! I don't have that PIC to test it with either.
  193. Replies
    17
    Views
    11,089

    [SOLVED !] Re: Pic 16F1937 to 6 Analog input in Pic basic

    ANSELx registers configure inputs as analogue or digital.

    Example: ANSELA = %00000001. Configure AN.0 as analogue input. Clearing the bits makes them digital.

    Look at the additional...
  194. Replies
    17
    Views
    11,089

    [SOLVED !] Re: Pic 16F1937 to 6 Analog input in Pic basic

    Hi Habro,

    Without your whole code, it is difficult to tell where your problem is.
    If you look at page 138 of the device's datasheet, there is a detailed explanation and example of how to...
  195. [SOLVED !] Re: IR -InfraRed ( Repeater/Recorder/Transmitter)

    If you are looking to send IR bursts at 32Khz, and the led current is less than 25mA, you can pulse the IR led directly from a port pin, if not you will need transistors.

    Assuming the current is...
  196. Replies
    5
    Views
    4,239

    Re: Odd Problem Reading ADC

    Can you not read both AD pins then send the data out, rather than read ad, send, read ad, send?
  197. Replies
    33
    Views
    15,257

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

    I looked at CAN on the DSPIC33 Bob, and as you say it is a lot more involved than an 18F series. One of the main differences is the need to use DMA. As posted earlier, I couldn't figure out how PDS24...
  198. Replies
    33
    Views
    15,257

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

    I was keen to use Proton24, but I came across a stumbling point regarding how the DMA command works in PDS24. Having not had a single reply from support, I had to go back to MplabX.
  199. Replies
    1
    Views
    984

    Re: Clicker 2 is PDS Compatible!

    Edit to post 1. the device on the Clicker2 is a PIC18F87J50. (Still PDS compatible)
  200. Replies
    1
    Views
    984

    Clicker 2 is PDS Compatible!

    Anybody who bought the original Mikroelektronika Clicker board (like I did) and found themselves disappointed because PDS doesn't support the 18F47J53, look below.
    ...
Results 1 to 200 of 1000
Page 1 of 5 1 2 3 4