Search Results - Proton BASIC community web site


Search:

Type: Posts; User: Peter Truman

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    598

    Re: Inscrutable eeprom problem

    Hmmn. The variables seem to be being recognised ok - but if I place the String Variable definitions at the top of the list - they just don't get loaded at the EREAD (only the first two)

    Move them...
  2. Replies
    6
    Views
    598

    Re: Inscrutable eeprom problem

    No one have any ideas?

    Cheers
    Peter
  3. Replies
    6
    Views
    598

    Re: Inscrutable eeprom problem

    Hi George

    Not entirely clear what you mean (radix indicators - so Dec, Bin etc?) But the problem is not just in the display - the variables are genuinely empty!
  4. Replies
    6
    Views
    598

    Inscrutable eeprom problem

    Hi All

    I've run into a problem I'm struggling to understand - any help would be much appreciated

    IDE 2.0.3.3
    Compiler 3.6.1.6

    The code below (which is a fragment of a larger program - with...
  5. Re: Preview of updated Proton Compiler Manual

    I've been using this program for 15+ years, I've bought it twice (so I would have a spare sparkey for my laptop) - I would buy it a third time if needed!

    Brilliant tool that from which I've made a...
  6. Re: johngb has just uploaded New Update to Proton Studio!

    One minor quibble -

    I have a particular, systematic style I use for writing code. All my variables are declared like this:

    b_Var_1 as bit (Obviously, the 'Var' part is changed to be a bit...
  7. Re: johngb has just uploaded New Update to Proton Studio!

    Well - I've installed the new IDE and I think it looks really good - I long ago abandoned AVG (and Norton) and now rely solely on Windows Defender (Windows 10 64 pro) and a good backup on my NAT and...
  8. Replies
    2
    Views
    35

    Odd USART behaviour

    Hi

    Not a big problem but slightly irritating nevertheless.

    I'm using an 18F25k22 with 2 USARTS. - But I find the second USART will not start receiving unless I first transmit a short string...
  9. Replies
    16
    Views
    83

    Re: Compiler problems

    Hey George - which Sandbox application would you recommend? I'm looking at VMware - which might be overkill. How about Sandboxie?
  10. Replies
    16
    Views
    83

    Re: Compiler problems

    It's a difficult one - every time someone asks me for advice (in the normal world) I tell them they must have a good AV, not download dodgy software, not download anything they don't pay for etc - so...
  11. Replies
    5
    Views
    34

    Managing Anti Virus Software

    Hi All

    Having recently spending a small fortune on a nice new DELL XPS top of the line system - I've spent weeks setting up the various bits and pieces I use - some frequently and some less...
  12. Replies
    16
    Views
    83

    Re: Compiler problems

    Ok - resolved!

    There are a couple of problems here. - 1, this is very old code and handles the serial interrupt in an overly complex fashion - I remember using interrupt code in the wiki. It was a...
  13. Replies
    16
    Views
    83

    Re: Compiler problems

    Ok - bit more information

    I've moved the file several levels up (in case the compiler didn't like it being so buried). Didn't help. So I have commented out everything except the device= line -...
  14. Replies
    16
    Views
    83

    Re: Compiler problems

    Hi - Just got back to this. Tried to compile a program (previously compiled with no issues) - this morning I'm having the same failure. So I changed the name of the file (to avoid any confusion) -...
  15. Replies
    16
    Views
    83

    Re: Compiler problems

    Doing it again!! - Flashes up really quickly with a complete red progress bar and says 'errors found' - then disappears before I have chance to examine it further. As I say - nothing in the results...
  16. Replies
    16
    Views
    83

    Compiler problems

    Hi - Is anyone else having compiler problems on Windows 10? (ver 3.6.1.6 - and the one prior)

    Sometimes everything is fine - but then, every now and again, when I click on 'compile' the compiler...
  17. Replies
    4
    Views
    980

    Re: Netcomm NTC3000 Error 515

    Hi Charlie and Les - thanks for the response. Tried every combination I can think of but still no joy. I can see absolutely no difference on the logic analyser between sending the string from the PIC...
  18. Replies
    4
    Views
    980

    Netcomm NTC3000 Error 515

    Hi All

    Pulling my hair out trying to understadn what I'm doing wrong here.

    I have a PIC1825K22 16Mhz - 2 USARTS Max232
    NetComm NTC 3000 - with flow control turned off - Baud rate is set at...
  19. Replies
    4
    Views
    719

    Re: Simple sort

    Hmmnnn. What I've done now is start with the output variable set impossibly high (301 is the max possible result - so I've set it at 500)

    X=500
    If A>0 and A<X then X=A
    If B>0 and B<X then X=B...
  20. Replies
    4
    Views
    719

    Simple sort

    Hi All

    This should be simple - and it is if I don't want to be extra efficient.

    I have 3 word sized variables A,B & C - I need to figure out - as efficiently as possible, which if the three is...
  21. Re: Scaling problems has my head turning to gray goo

    I've run into this problem before - the easy solution for me was to break the scaling into, in my case, 4 groups - depending on the quantum of the first value, I use a simple 'select case' structure...
  22. Thread: EPC File

    by Peter Truman
    Replies
    5
    Views
    943

    Re: EPC File

    Hi Les

    Sorry tot trouble you with this but I've run into an issue. It seems the U2 programmer doesn't support my chip (I should have checked) so I'm trying to intslall the PICKIT3 - I've read what...
  23. Thread: EPC File

    by Peter Truman
    Replies
    5
    Views
    943

    Re: EPC File

    Hi Les

    Thanks for the info - I thought it odd that the 'Device=16F1455' statement showed up in blue - in the past, if I tried to use an unsupported chip this statement would not be recognised. I'm...
  24. Thread: EPC File

    by Peter Truman
    Replies
    5
    Views
    943

    EPC File

    Hi All

    I've built a PCB using a 16F1455 PIC on the basis that it is shown as supported on the website, however, the compiler can't find the PIC16F1455.epc file in the programmer folder.

    Can...
  25. Replies
    13
    Views
    2,742

    [SOLVED !] Re: Proton USB Bootloader by Tim

    Does anyone know if I can use the 2nd USART for the serial bootloader? I'm committed to some quite expensive PCB's at the moment so much better to stick with them if I can.

    Cheers
    Peter
  26. Replies
    5
    Views
    2,274

    Re: Bootloader

    Hmmmnn.. there is another issue - I'm using USART 2 for PC comms - the other usart is tied up with other hardware (I can swap them on the next version of the PCB if I must)
  27. Replies
    5
    Views
    2,274

    Re: Bootloader

    Thanks Tim

    I'll work through the options - the problem with the USB bootloader is I'm more or less committed to the 18F25K22 - mostly because I need the 2 Usarts - this chip doesn't have USB so I...
  28. Replies
    5
    Views
    2,274

    Bootloader

    Hi

    Never used the bootloader before so I'm a bit of a newbie in this department.

    I have 2 questions if I may? (Strictly speaking - that makes three questions)

    How can I create or obtain a...
  29. Replies
    7
    Views
    1,240

    Re: Newbie Question - from an old user

    Hi Alberto - thanks for your input and your kind offer. I wonder if you could have avoided writing your own defs if the feature Stephen describes was available back then? (it might have been, but...
  30. Replies
    7
    Views
    1,240

    Newbie Question - from an old user

    Hi

    I'm on a project that requires me to be ultra careful with how I set things up. Normally I just setup symbols as I need them - like this


    Symbol T0IE INTCON.5 ' TMR0 Overflow...
  31. Replies
    18
    Views
    3,328

    Re: Perennial USART RF issue

    Ok - so looking at the logic analyser again 2712 I can see that the hash disappears as soon as the carrier is present, this is about 0.4 seconds then a bit more noise as I transmit the preamble -...
  32. Replies
    18
    Views
    3,328

    Re: Perennial USART RF issue

    Hi Barak

    Can you explain a bit more about 'changing the polarity of the Rx"? I've had a look at the RF RXd line (see pic) 2711 Clearly there is nothing but noise in the absence of a carrier, but...
  33. Replies
    18
    Views
    3,328

    Re: Perennial USART RF issue

    Hi Barak

    Wish I had seen this post yesterday - just spent the last 10 hours redoing my PCB layout to add another PIC :torn:

    I'll have a play with what you suggest - I've got the first version...
  34. Replies
    18
    Views
    3,328

    Re: Perennial USART RF issue

    Yup - looking at using a simple, cheap uC (16F616 - because I've got some) which I'll use just for the purpose. I've layed out the schematic so I can use the software serial in command and at the...
  35. Replies
    18
    Views
    3,328

    Re: Perennial USART RF issue

    Ok - spend most of the weekend on this - this is what I've done so far.

    Dramatically simplified my test program - to exclude most of the unnecessary stuff.



    Device = 18F2525

    Config_Start...
  36. Replies
    18
    Views
    3,328

    Re: Perennial USART RF issue

    Bit more to the story

    I've been experimenting a bit

    I have changed to pin I'm using for the incoming data and tried this



    SerIn PORTB.3,84,[Wait("UTU"),Str B_Undecoded\42]
  37. Replies
    18
    Views
    3,328

    Perennial USART RF issue

    Hi All

    I seem to struggle with this one every few years - thought it was time to sort it out properly.

    I am developing my own RF remote control using a couple of dumb RF modules (Radiometrix...
  38. Replies
    32
    Views
    5,913

    Re: Efficient RF protocol

    Chaps

    I did remove both the GIE=0 and GIE=1 and yes, the HRSOUT was diagnostic - I've moved the debug serial output to another pin so there should be no extraneous stuff in the interrupt.

    The...
  39. Replies
    32
    Views
    5,913

    Re: Efficient RF protocol

    Thanks Charlie

    I had added the GIE=0 to see if that would help - just never took it out again. Done now. Also read your wiki article which was very helpful. I've been thinking about the structure...
  40. Replies
    32
    Views
    5,913

    Re: Efficient RF protocol

    Hi Charlie

    USART2 refuses to receive ant data until it has transmitted at least 1 byte ???

    So, I set USART1 up to transmit and receive - it receives data with no problem.

    I set USART2 in the...
  41. Replies
    32
    Views
    5,913

    Re: Efficient RF protocol

    Hi Barak - no problem. I use the BIM1 RF Module and NBEK modem from Radiometrix (www.radiometrix.com) - they do their own packet radio etc but I prefer to keep the price down and do it myself. They...
  42. Replies
    32
    Views
    5,913

    Re: Efficient RF protocol

    Bit more to say - Of course I meant Topography not Topology :-(

    My application is moving irrigation infrastructure. Sometime a 'hard hose' (this is a big drum of polypipe that pulls a sprinkler...
  43. Replies
    32
    Views
    5,913

    Re: Efficient RF protocol

    Hi All

    Thanks for the replies - and the interesting link.

    Ok - Few things to report - first off is the fact that I have just spent the best part of 3 days trying to make the second USART work...
  44. Replies
    32
    Views
    5,913

    Efficient RF protocol

    Hi All

    I'm sure this is straight forward but I've been fiddling for a while and not sure I'm on the right track.

    I'm looking for a really efficient way to send 13 word sized variables out over...
  45. Replies
    16
    Views
    4,081

    Re: Tripple source Interrupt

    Hi Tim

    Well spotted - I removed it after not being able to get it to work. I find my code gets so convoluted and untidy I can't really see what I'm doing so every now and again I tidy up and...
  46. Replies
    16
    Views
    4,081

    Re: Tripple source Interrupt

    Excellent idea - I do actually have a spare external interrupt I can use - hadn't thought of just wiring them i parallel. Obvious now you mention it.

    Cheers - Give me somethi ng to do on Sunday!
  47. Replies
    16
    Views
    4,081

    Re: Tripple source Interrupt

    Hmmmm. that a problem - how would activity on RC7(Rx) wake the PIC from sleep - its not an external interrupt source? PIC18F2525

    Or am I missing something?
  48. Replies
    16
    Views
    4,081

    Re: Tripple source Interrupt

    Hi Tim

    I do have control over what is sent - I'm building a PC based UI that will fire up when the serial cable is connected - actually it's an FTDI TTL cable so I can have the virtual com port...
  49. Replies
    16
    Views
    4,081

    Re: Tripple source Interrupt

    Hi Charlie

    Thanks for that - I've learned heaps about interrupts over the last few days - mindbending datasheets, but really not that hard when you concentrate.

    I have my program waking up more...
  50. Replies
    16
    Views
    4,081

    Re: Tripple source Interrupt

    Bugger me sideways if I haven't just wasted 2 days trying to find this problem only to discover that the string I was loading was too short for the data I was sending! I was trapped by the fact that...
  51. Replies
    16
    Views
    4,081

    Re: Tripple source Interrupt

    Hi guys - thanks for the feedback. I'm going to strip the code down to the bones and rebuild it just around the core functions. If I can get it to work like that I'll reintroduce what I've discovered...
  52. Replies
    16
    Views
    4,081

    Tripple source Interrupt

    Hi All

    I'm struggling to get my head around high and low priority interrupts.

    I have a project which requires long periods of low power sleep interspersed with occasional external interrupts...
  53. Replies
    10
    Views
    7,136

    Re: Tool chain

    Hi John

    Thanks for that - I'm looking at the DM330013 - Microstick for dsPIC33F and PIC24H and TCAD001 - Microstick Plus Development Board as a possible way to go - This lists the PIC33fJ64MC802...
  54. Replies
    10
    Views
    7,136

    Re: Tool chain

    Thanks Harm

    I'll do some more reading

    Cheers
    Peter
  55. Replies
    10
    Views
    7,136

    Tool chain

    Hi All

    I've been a proton user many years now - I've not yet ventured into the realm of PIC24 or DSPIC so I thought I would ask some advise here.

    I need to be careful not to do something silly...
  56. Replies
    9
    Views
    5,713

    Re: Newhaven 2x20 LCD with I2C Interface

    Hi Alberto

    Thanks for that - makes a bit more sense now. I have had a look at your driver - way above my head and appears to do everything I want to do - so it doesn't make any sense for me to...
  57. Replies
    9
    Views
    5,713

    Re: Newhaven 2x20 LCD with I2C Interface

    Hi Alberto

    I have a copy of your routine (from the Wiki), plus copies of the Newhaven Example code open in different screens. I'm struggling to find the correct frame of reference. For example, I...
  58. Replies
    9
    Views
    5,713

    Re: Newhaven 2x20 LCD with I2C Interface

    Just an update on this - I do have this display working. But.... I'm now having a problem adjusting the contrast - I can barely see the characters at the moment. The example code is so poorly...
  59. Replies
    9
    Views
    5,713

    Re: Newhaven 2x20 LCD with I2C Interface

    Hi Alberto - I did see that, but found it very difficult to follow - partly because of the Spanish? - I also wasn't sure if the ST7032i was going to be very different from the St7036i on my part.
    ...
  60. Replies
    9
    Views
    5,713

    Newhaven 2x20 LCD with I2C Interface

    Hi All

    I'm experimenting with this LCD module (from Digikey Cat No NHD-C0220BIZ-FSW-FBW-3V3M-ND) - because I need an I2C LCD.

    I've spent the afternoon trying to convert the (very poorly...
  61. Replies
    4
    Views
    5,924

    [SOLVED !] Re: MPL115A2 I2C code problem

    The single most useful bit of Kit I have is a Salea Logic Analyser - I use it all the time for debugging I2C (and several other protocols) - it allows me to see exactly what is going on in each...
  62. Replies
    13
    Views
    10,303

    Re: Finding the correct formula

    Hi Bob

    That's about it. I'm going to have another crack at this after tea. I'm going to do this with smaller numbers, to start with like the example above. Clearly keeping track of the number of...
  63. Replies
    13
    Views
    10,303

    Re: Finding the correct formula

    Hi all - Despite knowing that what I want to do is entirely possible and despite many hours on exel, I've still not really found what I'm looking for. I wonder if I can ask for a bit more help? - I...
  64. Replies
    13
    Views
    10,303

    Re: Finding the correct formula

    Just reporting in - I've finished the logging code and, not withstanding full testing yet, I can report no problems so far. Thanks very much for the help - I'd be lost without this forum.

    Cheers...
  65. Replies
    13
    Views
    10,303

    Re: Finding the correct formula

    Thank you all, I've been working on the code and it all looks good so far. Thanks for the extra information Les
  66. Replies
    13
    Views
    10,303

    Re: Finding the correct formula

    Ok - I've been staring at this for an hour or so. Things seem to get easier if I run the event number from 0 to 4294967294 rather than starting at 1.

    Now I have event number 0 written to location...
  67. Replies
    13
    Views
    10,303

    Re: Finding the correct formula

    Hi Mellbreak - events are numbered 1 to 4294967295 (never zero) - testing your example seems to fix one issue but raise another. Event 4001 is written to location 0 (which is correct) but event 4000...
  68. Replies
    13
    Views
    10,303

    Finding the correct formula

    Hello all

    I'm going slightly bog eyed trying to figure a formula for doing something relatively simple -

    to explain...

    I have a 64kb eeprom in a logger application.

    I'm counting 'events'...
  69. Replies
    3
    Views
    4,262

    VSM TTY Serial port

    Hi All

    I'm currently evaluating the ISIS VSM to see if I can justify the expense of buying a copy. I've been reading up on what it can do. It appears that the virtual serial port can only do upto...
  70. Replies
    10
    Views
    4,013

    Re: MAC OSX soft carrige return, question.

    Hi - I can confirm I had the same (or at least similar) issue with the forum formatting. In my case it was mostly related to posting code segments I think.

    I fixed it in settings, micelanious...
  71. Replies
    69
    Views
    36,158

    Re: Dual EUSART in 18F25K22

    Hi Jody - I'm about to explore this a bit more, but I don't think you can use the Declare more than once so I dont think that will work.

    Cheers
  72. Replies
    9
    Views
    9,390

    Re: Preprocessor directives or other help

    LOL - was there ever any doubt?
  73. Replies
    9
    Views
    9,390

    Re: Preprocessor directives or other help

    I guess he wants to be sure he doesn't
    miss anything while his code is busy doing something else. Les's code is excellent but can be a bit more advanced than needed. Have a look at Charlie's big...
  74. Replies
    4
    Views
    4,585

    Re: Single letter identifiers

    Just for interest - I've taken to using the following format for declaring all my variables. Once they are declared I always use them in lower case - they will convert to upper case if I have them...
  75. Replies
    69
    Views
    36,158

    Re: Dual EUSART in 18F25K22

    That seems to be the issue - I hadn't really thought that one through. Wont be a problem when I do the visual basic routine. It's not that late here either (10:20 now) - I'm in Tassie, but I've had...
  76. Replies
    69
    Views
    36,158

    Re: Dual EUSART in 18F25K22

    Sorry John, I'm a bit confused, I'm using my PIC to communicate with a terminal program (in this case the old PicBasic terminal - Link) - so I guess it's a question of how to make the terminal do the...
  77. Replies
    69
    Views
    36,158

    Re: Dual EUSART in 18F25K22

    Hey John

    I'm a bit stuck - the ASCII table lists Decimal 7 as the 'Bell' and (from my old gwbasic days) printing "\7" would make a ding, as I recall. I'm using HRSOUT2 (rather than print) and I...
  78. Replies
    69
    Views
    36,158

    Re: Dual EUSART in 18F25K22

    Does anyone know how to send a 'bell' to the PC from the serial port - I tried hrsout 7,13 - which is listed as the 'bell' command. I've searched the forum but really only came up with stuff from way...
  79. Replies
    69
    Views
    36,158

    Re: Dual EUSART in 18F25K22

    Hi Les

    My apologies - had another look and there it was. Sloppy on my part.

    Cheers
    Peter
  80. Replies
    69
    Views
    36,158

    Re: Dual EUSART in 18F25K22

    Sure, I'll PM you.

    I do all my development with flashing led's and a scanner (best tool when doing RF work) - lately I've been including a serial connection to the PC and I use my logic analyser,...
  81. Replies
    69
    Views
    36,158

    Re: Dual EUSART in 18F25K22

    Hi Charlie

    Thanks for that - I currently have both USARTS running at 57600 - which is the default both the RFD900 radio modem (the more I play with that, the more impressed I am) and is quite fast...
  82. Replies
    69
    Views
    36,158

    Re: Dual EUSART in 18F25K22

    BTW - just for anyone that reads this in the future - in answer to my own question about the need to put jumper connectors between PGD & PGC and the MAX232 (I was not sure if the MAX232 would...
  83. Replies
    69
    Views
    36,158

    Re: Dual EUSART in 18F25K22

    Hi Charlie - thanks for the encouragement - you are a very good tutor! I'm about to add a timer to the interrupt routine as well - project is coming to together nicely.

    I also read your article on...
  84. Replies
    69
    Views
    36,158

    Re: Dual EUSART in 18F25K22

    Hi John

    Hmmmn... I must be doing something wrong then. - Have a look at this.



    ;Calculated Baudrate = 9592 @ Xtal 16MHz, Error = -0.08%
    Declare Hserial_RCSTA = 144 ; Enable continuous...
  85. Replies
    69
    Views
    36,158

    Re: Dual EUSART in 18F25K22

    Well that wasn't as difficult as I expected :-)

    All I've done is set the internal osc to run at 16MHz then added the PLL. Just tested at 115200 Baud and it seems to work fine!

    I have...
  86. Replies
    69
    Views
    36,158

    Re: Dual EUSART in 18F25K22

    Hi John

    Just to clarify what you are saying here - you setup the serial port in the normal way (using Declares at the start of the program) Then change the SPBRG at will throughout the program -...
  87. Replies
    69
    Views
    36,158

    Re: Dual EUSART in 18F25K22

    Hi Charlie

    I've implemented the big buffer on both USARTS on an 18F25K22 - very easy to use and seems to work a treat! I just copied and renamed the necessary variables and duplicated the get_chr...
  88. Replies
    69
    Views
    36,158

    Re: Dual EUSART in 18F25K22

    Hi John / Charlie

    Very good, I've sent the board off to be made (pcbcart.com) in China - quick plug for them, they have been great. When I get the boards back I'll get stuck in and see how I go.
    ...
  89. Replies
    69
    Views
    36,158

    Re: Dual EUSART in 18F25K22

    Excellent news - I would have been very surprised if I couldn't but it's always worth asking. Charlie, I did grasp the issues associated with a bigger buffer - reading the posts makes it seem quite...
  90. Replies
    69
    Views
    36,158

    Re: Dual EUSART in 18F25K22

    Just to finish off - can I confirm that it's perfectly acceptable to change the Baud rate on the fly? I have to keep this compatible with an old legacy project but I can also use ot for other work. I...
  91. Replies
    69
    Views
    36,158

    Re: Dual EUSART in 18F25K22

    Thank you Charlie - just what I need. Do you mind if I ask how deep your serial buffer is? Les's is 255 bytes maximum and, while that is enough for this project is is a potential limitation for...
  92. Replies
    69
    Views
    36,158

    Dual EUSART in 18F25K22

    Hi

    I'm looking at using a PIC 18F25K22 in an upcoming project. I'd just like to be sure of my facts before I get a board made.

    Can anyone confirm that I can use a different BAUD rate with each...
  93. Replies
    5
    Views
    4,011

    Re: ALAFAT USB Board - I need some help :-(

    Just looking at the formula for calculating the Baudemode argument -

    If I want 115200 8N1 True then I get

    Step 1 (1,000,000/115200)-20=8.680555
    Step 2 = Step1 +0 = 8.680555
    Step 3 = Step...
  94. Replies
    5
    Views
    4,011

    Re: ALAFAT USB Board - I need some help :-(

    Hi Gamboa

    Thank for the advice - my problem is that the Hardware UART is already tied up on another task - so I can only use a software serial port (Serin / RSin etc) - I don't know how to set...
  95. Replies
    5
    Views
    4,011

    Re: ALAFAT USB Board - I need some help :-(

    Hey Joan

    I committed to using the USRT Rx to receive data from the legacy device so I could buffer the input, not having any chance to flow control the incoming data. There is no serial comms back...
  96. Replies
    5
    Views
    4,011

    ALAFAT USB Board - I need some help :-(

    Hi All

    I found myself in something of a hole - and the first thing to do is stop digging!

    I have bought a number of ALFAT OEM USB Boards...
  97. Replies
    33
    Views
    6,054

    [SOLVED !] Re: Rotary/Quadrature Encoders .. yet again

    Hi Jessica

    I have some code written specifically for a quadrature encoder, designed to read both the direction and angular movement of a large drum. It was designed to use an encoder with...
  98. Replies
    0
    Views
    11,003

    Alfat USB OEM

    Hi All

    Does anyone have any experience using the Alfat USB OEM board - the one with the single USB port?

    I'm experimenting at the moment - I intend to use the I2C bus for comms but, for the...
  99. Thread: Alfat USB

    by Peter Truman
    Replies
    0
    Views
    1,597

    Alfat USB

    Hi all

    I'm just embarking on my first project using the Alfat USB v1.2 board - please forgive me posting here, there does not seem to have been any activity on the Alfat section since October 2008...
  100. Replies
    4
    Views
    2,006

    Re: Silly question re SD cards

    Thanks Simon - don't know why I didn't see them there myself - I'm sure I looked. Anyway - All installed now, looks like a very useful set of routines. Thanks for your help.

    Peter
  101. Replies
    4
    Views
    2,006

    Re: Silly question re SD cards

    Hi Norm

    Thanks for that - interesting project and a nice piece of music to boot! Sadly I need to write to the SD card so that's not going to help me I'm afraid.

    Thanks anyway

    Cheers
    Peter
  102. Replies
    4
    Views
    2,006

    Silly question re SD cards

    Hi All

    I know I should be able to figure this out on my own but.... I see lots of references to Library files that will help me with reading and writing to an SD card - I've read a couple of posts...
  103. Replies
    8
    Views
    6,954

    Re: Eusart calculator and SPBRG settings

    Ok - just for interest, I changed my setting so I'm not using the 'full WYSIWYG' editor and low and behold,

    my return key works again !

    :-)
  104. Replies
    8
    Views
    6,954

    Re: Eusart calculator and SPBRG settings

    Hi Paul - in this case the PIC is receiving not transmitting. if I use my logic analyser to measure the board rate on transmit, will that translate directly to receive as well? On the same subject...
  105. Replies
    8
    Views
    6,954

    Re: Eusart calculator and SPBRG settings

    Hi John - this is very strange - neither the main return/ enter key or the num pad return/enter will do anything on the forum (just pressed them both about 10 times) and, as you can see - no sign of...
  106. Replies
    8
    Views
    6,954

    Eusart calculator and SPBRG settings

    I've been asked to look for a problem in an old system that I built some years ago. The board uses a PIC18F2525 with Les' Software Serial Buffer and a small radio module. It seems this thing works...
  107. Replies
    4
    Views
    4,848

    Re: changing xtal speed 'on the fly'

    Ok - great info thanks. I'll get to work over the weekend - sadly not much time to play until then.
  108. Replies
    4
    Views
    4,848

    changing xtal speed 'on the fly'

    Hi All
    I'm using an 18F2525 PIC setup which I want to have automatically drop into low power mode after a certain time with no activity. I have it all working the way I want except I can't get the...
  109. Replies
    5
    Views
    1,481

    Re: Company restrictions on "USB Sticks"

    I was at a meeting with a group of Hospital IT staff at a public hospital in Melbourne about 2 weeks ago - I was canvasing the idea of using their wifi network to allow the next generation of a...
  110. Replies
    6
    Views
    5,167

    [SOLVED !] Re: Lcd 16f877

    Just a thought - have you checked the contrast adjustment?
  111. Replies
    16
    Views
    3,717

    [SOLVED !] Re: Circular buffer from USART problem.

    I remember struggling with this same issue some years ago - It took me awhile to realise that the simple act of reading a byte from the buffer (var=HRSIN) effectivly moved (not copied) that byte to...
  112. Replies
    4
    Views
    1,051

    Re: unrandomising random

    That link looks very promising
  113. Replies
    4
    Views
    1,051

    unrandomising random

    Hi All

    Slightly unusual resuest this one but....

    I'd like to be able to duplicate the Proton random number generator - in an excel spreadsheet. Currently I'm setting the random seed in my PIC...
  114. Replies
    5
    Views
    2,704

    Re: Optoisolator using 24v dc

    Hi tkaruna

    I use an optomos for this purpose - allows me to control a 24vDC high side output from the 5v output of the PIC - specifically I use CLA230CT-ND from digikey...
  115. Replies
    5
    Views
    2,238

    [SOLVED !] Re: how to use timers and counters

    Once you have done that - you can find some excellent help in the wiki - when I was a newbi I started with a little timer routine just based on a delay 1ms loop - built up the seconds, minutes etc...
  116. Re: New Smallest and Lowest-Cost PIC Microcontroller

    Is it likely that this will be suported in Proton do you think?
  117. Replies
    1
    Views
    1,569

    Rotary encoder

    I have been working on a large drum winding application for which I needed an accurate roational position. Looking at a standard quadrature encoder I found that I was getting problems with a certain...
  118. Replies
    4
    Views
    746

    Re: More appearances on TV

    Hey Tim - first class, well done.

    Mind if I ask who does your manufacturing? I'm just venturing into asia for my production PCB's but I've not grasped the nettle in terms of a whole project.
    ...
  119. Replies
    7
    Views
    1,657

    Re: ASM Errors when compiling with 3.5.5.5

    Ok - thanks Les
  120. Replies
    7
    Views
    1,657

    Re: ASM Errors when compiling with 3.5.5.5

    Hi Les

    Ok - that worked. Now compiles properly although I have not tested the F/W as yet. Is this something we can put down to an anomoly or should we investigate further?

    Thanks for the prompt...
  121. Replies
    7
    Views
    1,657

    Re: ASM Errors when compiling with 3.5.5.5

    Ok - I deleted everything from the relevent directory except for the bas file. I compiled again with the same result.

    AS 3002 : symbol not previously defined (_BEXP) - I don't use this variable...
  122. Replies
    9
    Views
    1,927

    Re: Simple encription

    Thanks Tim

    I'll have a close look at that. I intend to use the master list of pseudo random numbers, offset by the serial number plus an increment isn't variable to ensure any code is used only in...
  123. Replies
    7
    Views
    1,657

    ASM Errors when compiling with 3.5.5.5

    Hi All

    Can anyone point to what might be causing this problem?

    I have a (long) piece of code that has always compiled fine up until I installed compiler verison 3.5.5.5 last week - I have been...
  124. Replies
    9
    Views
    1,927

    Re: Simple encription

    Interestingly, the range 24 to 672 is the number of hours in a range of between 1 and 28 days. I have a product which a user will be able to rent from consignment stock. So the device will sit on a...
  125. Replies
    9
    Views
    1,927

    Simple encription

    Hi All

    I have an application in which I need to generate a 3 digit number (could be 4 digites) that can represent any other 3 digit number.

    In a bit more detail - I want to use a formula that...
  126. Replies
    5
    Views
    1,597

    Re: Rounding a float (fround?)

    Ok - got it. That works fine

    Thanks

    Peter
  127. Replies
    5
    Views
    1,597

    Re: Rounding a float (fround?)

    Hmmmn... I must be missing something

    dim float_revs as float
    dim test_revs as float

    float_revs=10.23
    test_revs=fRound(float_revs*4)/4

    rsout "revs ",dec5 float_revs,13
    rsout "test ...
  128. Replies
    5
    Views
    1,597

    Re: Rounding a float (fround?)

    Ok - been thinking about this - the following code works, but I'm not sure if it is the most efficient way of doing this?



    Dim d_revs As Dword
    Dim result_revs As Float
    revs=10.0 ...
  129. Replies
    5
    Views
    1,597

    Rounding a float (fround?)

    Hi

    I'm using complier ver 3.5.5.5 and find my self staring at the screen for a simple solution.

    I am caculating the number of drum revolusions from a 3:1 ratio rotary encoder - (1 * 360 deg...
  130. Replies
    9
    Views
    3,249

    Re: Hserout vs Serout baud issue

    Thanks Les - that seems to have fixed it. Worth noting that Tim's Interrupt Driven Timer 1 program in the example code also has a context restore but no save. So that threw me for a loop.

    These...
  131. Replies
    9
    Views
    3,249

    Re: Hserout vs Serout baud issue

    Hey Simon

    The problem is with the interrupt handler disrupting the outbound serial signal - I use Les's serial buffer all the time for recieving but I don't think it works for transmitting. My...
  132. Replies
    9
    Views
    3,249

    Re: Hserout vs Serout baud issue

    Interesting - this has not solved the whole problem!

    What I'm doing is using the hardware USART to send data out. I also want to drive a magnetic buzzer at an adjustable duty cycle. As it stands I...
  133. Replies
    9
    Views
    3,249

    Re: Hserout vs Serout baud issue

    Thanks PIC - that worked perfectly (on the nail in fact).

    Appreciate your help
  134. Replies
    9
    Views
    3,249

    Re: Hserout vs Serout baud issue

    Ok - thanks for that. I'll do some reading and see where this fits in. I looked in the wiki at the plugin, but I'm not at my PC at the moment so I can't install it to have a proper look.

    Thanks...
  135. Replies
    9
    Views
    3,249

    Hserout vs Serout baud issue

    Hi All

    I've been using the software USART to transmit some date - with no problem, now I need to add an interrupt to do something else so I decided to move over to using the hardware USART to...
  136. Replies
    8
    Views
    1,994

    Re: How to approach a programming task

    Yep - pretty much as I thought - I was hoping to avoid having to write a GUI - hope springs eternal!
  137. Replies
    8
    Views
    1,994

    Re: How to approach a programming task

    Hi (sorry, I can't find your name) - I'm guessing it's Mr (or Mrs) Gilmore ? :-)

    Thats very close to the sort of thing I'm doing - and not a bad price. PM me if you are looking for an Australian...
  138. Replies
    8
    Views
    1,994

    Re: How to approach a programming task

    That sounds reasonable - but involves positioning the cursor on the terminal window. So slot 1 might print out liek this

    Slot 1 no. 0407543071

    and I wanted to change it to 0407421039 I would...
  139. Replies
    8
    Views
    1,994

    How to approach a programming task

    Hi all

    I'm doing some work that requires I give an end user access to a 'configurator' to change some data - I've been thinking about this for a week or so and can't really see the best way to...
  140. Replies
    15
    Views
    5,198

    Re: Modbus - RS485 question

    Hi all

    I'm really interested in modbus but not found a good enough reason to get started - would you mind including me Tim (you have my pm I think)

    Many thanks
    Peter
  141. Replies
    12
    Views
    6,487

    Re: PCF8574 I2C port expander problem

    Interesting... now you say that, and I have another look you are completley right - I had read this bit


    Operating supply voltage 2.5 to 6 V
    Low standby current consumption of 10 mA maximum...
  142. Replies
    12
    Views
    6,487

    Re: PCF8574 I2C port expander problem

    Sorry John and John - I ascribed the pullup solusion to the wrong John!

    Thanks and cudos to you both
  143. Replies
    12
    Views
    6,487

    Re: PCF8574 I2C port expander problem

    Hi John - I read it the same way at first - but the data sheets clearly state that the part can SOURCE or SINK 25ma. My electronics skills are fairly limited but I can't understand how it would eb...
  144. Replies
    12
    Views
    6,487

    Re: PCF8574 I2C port expander problem

    Hi John

    That's a good idea - in the sense of solving the problem (Except I don't have a spare pin at the moment - I will have to multiplex something to free up some I/O) I still can't get my head...
  145. Replies
    12
    Views
    6,487

    PCF8574 I2C port expander problem

    Hi all

    bit of a problem with this PCF8574 port expander. The data sheet clearly shows that the device will SOURCE or SINK 25ma per output. So I designed a board with this chip on the I2C bus...
  146. Replies
    11
    Views
    1,814

    Re: Pneumatic thinking help needed (Resolved)

    You building a spud gun Tim? ;-)
  147. Replies
    25
    Views
    5,587

    Re: Pulse counting, storing and reading back

    Jeez - who do you have to sleep with to get this level of support?:surprise: (only joking)
  148. Replies
    6
    Views
    1,786

    Re: Incremental encoder interrupt problem

    Hey Tim

    Thanks for that - bloody obvious now you point it out! I'll get to this sometime tomorrow, hopefully should be simple from there. Thanks again
  149. Replies
    6
    Views
    1,786

    Re: Incremental encoder interrupt problem

    Hi Tim and Mischa

    Ok - back home now so I'll try and post the code again. I orogionally had a 4k7 resistor and 0.1uf cap on both lines but I removed them thinking that might be causing my problem....
  150. Replies
    6
    Views
    1,786

    Re: Incremental encoder interrupt problem

    Yeh I saw that - whats the stpry there then? All I did was place the [ code ] and [ /code ] (escuse the spaces) then cut and past the code from the IDE between them. I'm now about 1000 miles from...
  151. Replies
    6
    Views
    1,786

    Incremental encoder interrupt problem

    Hi all - scratching my head again!

    I have a problem with interfacing a SICK DFS60E-THAC00360 rotary encoder (360 lines) with a PIC18F2525. I have cha on portb.1 and chb on portb.2. Compiler is...
  152. Thread: GSM Dates

    by Peter Truman
    Replies
    8
    Views
    3,018

    Re: GSM Dates

    Hi Tim

    Thanks for the code - works perfectly (I never doubted it)

    Cheers
    Peter
  153. Thread: GSM Dates

    by Peter Truman
    Replies
    8
    Views
    3,018

    Re: GSM Dates

    Ok - thanks Tim, I'll have a crack at it as soon as I can

    Cheers
    Peter
  154. Thread: GSM Dates

    by Peter Truman
    Replies
    8
    Views
    3,018

    Re: GSM Dates

    Hi All

    Ok - I've had a look at unix time - seems to be ideal for what I'm looking for - can you point me at the necessary routines (Tim) - appreciate your help.
  155. Thread: GSM Dates

    by Peter Truman
    Replies
    8
    Views
    3,018

    GSM Dates

    Hi All

    Been bashing away all day at an SMS project. All going well except.....

    I have an algorythm to check if there are any duplicate messages in the modem buffer - I've parsed out the sms id...
  156. Replies
    5
    Views
    3,634

    [SOLVED !] Re: LCD DIY serial module

    Hi Les

    Just to jump in here - I'm doing a similar thing, but... I want a bit more control, For example I want to print values to 2 parts of the screen each without disturbing the other.

    For...
  157. Re: SPI - (Can't belive a search on SPI yields no results?)

    Thanks for the input chaps - Bob, I've sent you a PM with a fuller outline of what I'm after. I'll hit the wiki and whatever other learning resources I can find.

    Cheers
    Peter
  158. Re: SPI - (Can't belive a search on SPI yields no results?)

    Hi - reading the microchip forum, there seems to be substantial concern about the consequences of their being a single failure anywhere on the bus - no way to tell what is causing the trouble.

    I...
  159. SPI - (Can't belive a search on SPI yields no results?)

    Hi All - back to a bit of PIC programming in amongst other projects!

    Here's the plan - I want to build some controllers using pre made DIN rail based enclosures (Phoenix Combicon connector system)...
  160. Replies
    6
    Views
    1,701

    Re: Non Random - Random numbers

    Sorry - meant cryptology!
  161. Replies
    6
    Views
    1,701

    Re: Non Random - Random numbers

    Geez, just been reading some of the stuff on the net re MD5 - some of these cryptrography guys get well exited about it all :-)

    I have to add a sort of extention, in that when the enduser gets the...
  162. Replies
    6
    Views
    1,701

    Non Random - Random numbers

    Hi all

    Just want to clarify my thinking and assumptions. I want to generate a list of random numbers but I need to be sure that, given the same seed, each PIC will always generate the same...
  163. Replies
    2
    Views
    1,034

    Re: Another bunch of code

    Looks good Tim - bound to be a use for it somewhere!

    Thanks
  164. Replies
    5
    Views
    3,065

    Re: SMT soldering service

    For a chip like that I would flood the pins with solder then pull it all off again with solder braid - it's ok for prototyping but I've pretty much given up loading my own boards - much more reliable...
  165. Thread: I2C bus

    by Peter Truman
    Replies
    6
    Views
    3,029

    Re: I2C bus

    Hi Bob

    I've never really looked at CAN - always seemed a bit daunting. I'll have a google and see what pops up. I'm in a better position now, having decided to redesign the hardware I'm free to do...
  166. Thread: I2C bus

    by Peter Truman
    Replies
    6
    Views
    3,029

    Re: I2C bus

    Ok - ideas and warnings taken on board - Having read a fair bit about htis over the last week or so I keep seeing SPI popup looking like the 'industry standard' way of doing things. It seems that I2C...
  167. Replies
    14
    Views
    2,147

    Re: 2D Drawing software

    I'd go with draftsight too - excellent product and free for the basic package. I too had the same problem with Coral Draw - wouldn't install on my new Win7 machine - so I bought it (again) but with...
  168. Thread: Amazing !

    by Peter Truman
    Replies
    23
    Views
    3,598

    Re: Amazing !

    A rose, by any other name, would smell as sweet LOL

    Seems to me, that article (which our Bristish Cousins can't access :-( seems to be more irritated by the politcs and 'spin' surrounding the way...
  169. Replies
    7
    Views
    2,202

    Re: prioroty interrupts

    Thanks Wastrix - I'll have a fiddle with that in the morning. I've spent the whole day trying to figure out why my RTC doesn't work on this board, when the layout is the same as I've used for a...
  170. Replies
    7
    Views
    2,202

    Re: prioroty interrupts

    Ok - this is where I am now

    Below is the include file - if I structure it with Joes (Excellent) code at the begining of the buffer code it kinda works (but the serial input clearly takes...
  171. Replies
    7
    Views
    2,202

    Re: prioroty interrupts

    Hi Wastrix - new day today so I'll clean up what I did last night and have another crack at it - the code would not compile with INT1IF=0 which is why I took it out - I was just fiddling at that...
  172. Replies
    7
    Views
    2,202

    Re: prioroty interrupts

    just before I knock off for the night - I've spotted a couple of minor errors in my code - nothing that helps much. I can confirm howver that if I exclude the encoder code from the interrupt the...
  173. Replies
    7
    Views
    2,202

    prioroty interrupts

    Hi all. I could use a little help with an interrupt problem if possible.

    This project has 2 pieces of hardware, each with an 18F2525 PIC. One is basically just a simple LCD MHI and the other is a...
  174. Replies
    20
    Views
    3,625

    Re: Working with big projects in PDS

    I wasn't suggesting that the use or purpose of what you propose was over my head - just how you would go about constructing such a program - I have some code here here that uses multiple subroutines,...
  175. Thread: I2C bus

    by Peter Truman
    Replies
    6
    Views
    3,029

    I2C bus

    Hi All

    I'm keen to connect 2 PICs on seperate boards via the I2C bus - does anyone have any experience of setting up a PIC to operate in this way? I'm familier with using I2C to communicate with...
  176. Replies
    25
    Views
    2,989

    Re: 0 to 10 v driver

    Hi Tim

    Don't know if it helps, but I use a TC1320 DAC (I2C) followed by an opamp (LM358) to handle my analogue output - reason is, I can just talk to the DAC via the !2C bus then forget about it...
  177. Thread: Amazing !

    by Peter Truman
    Replies
    23
    Views
    3,598

    Re: Amazing !

    Thanks for the offer Joe but I think I will respectfully decline, if that's ok LOL

    What do you think about the Higgs Bosan now then - smarty pants!
  178. Replies
    20
    Views
    3,625

    Re: Working with big projects in PDS

    I'm interested - it's just way above my head! I tend to follow thimgs like and find that I really do need them when they are released. Be a shame to waste all that work for lack of response. I...
  179. Thread: Amazing !

    by Peter Truman
    Replies
    23
    Views
    3,598

    Re: Amazing !

    I still can't get the past the image generated by Joe and his priapism LOL


    I think its very cool and bound to lead to something useful - wish I had one to play with!
  180. Thread: Spi i2c

    by Peter Truman
    Replies
    0
    Views
    1,601

    Spi i2c

    Hi All

    Anyone have any experience with using I2C PIC to PIC? I've used it many times to communicate PIC to eeprom, RTC, or whatever but now I need to have multiple PICs on a distributed bus...
  181. Replies
    5
    Views
    3,070

    Re: The Internet Of Things

    Great Mav - I'll have a play with this later.

    Cheers
    Peter
  182. Re: Calculating the distance between any 2 lat/long positions

    This has been a most productive discussion - and one I hope will be useful for other forum users - I've still not got my sample data and once again I've got too many projects for my own good. But...
  183. Replies
    157
    Views
    20,737

    [SOLVED !] Re: Stealing Proton

    I have to agree with Lester, to a point! In Australia we mostly have good access to 'always on' internet (there will be those that don't of course) our Government was elected on the promise to bring...
  184. Replies
    5
    Views
    3,030

    [SOLVED !] Re: Installation Help Please

    I just took the oportunity to grab P-ICD while I can (been looking for it for a while) - Installed ok, but sadly the Help File is missing - can anyone oblige?
  185. Replies
    157
    Views
    20,737

    [SOLVED !] Re: Stealing Proton

    Clearly the internet connectivity is a major issue for some so how about a hybrid model? Dongle available for those that wish to be completely self reliant but cloud based for those that were happy....
  186. Re: Calculating the distance between any 2 lat/long positions

    Hi fella's

    Still waiting for my sample data (which was promised me before tea - typical farmer :-) I expect I'll get it some time over the weekend. I did a bit more investigating on how the RTK...
  187. Replies
    157
    Views
    20,737

    [SOLVED !] Re: Stealing Proton

    Hi Lester

    First off, I've not lost my key. It's just that living in Australia it could take maybe a week or 10 days to organise a replacement if I ever had a problem (not that I ever have in...
  188. Re: Calculating the distance between any 2 lat/long positions

    Excellent point - John, you express it better than me, but it does seem that a relatively simple bit of trig should give me a workable solution - Providing that I take Joe's point into consideration....
  189. Replies
    157
    Views
    20,737

    [SOLVED !] Re: Stealing Proton

    What an interesting thread! I know for myself, access to the forum was a big part of my purchasing decision - as a complete, rank amateur at the time it was quite a big step to to take. I decided...
  190. Re: Calculating the distance between any 2 lat/long positions

    Hi all.

    This seems to have sparked a bit of intererst - I'm distracted with other things for the moment, but I have been thinking about this (instead of sleeping). I'm waiting for some clearer...
  191. Re: Calculating the distance between any 2 lat/long positions

    Ok chaps - it does seem I have a LOT more work to do on this. My understanding so far suggests that one of the main limitations is the 'approximate' nature of the 32bit math on the PIC? - it just...
  192. Re: Calculating the distance between any 2 lat/long positions

    Hi Wastrix.

    Ok - understood about radians but I'm struggling to get a picture in my head as to how this translates into linear distance. Is it that the great circle thing represents an arc across...
  193. Re: Calculating the distance between any 2 lat/long positions

    Hi again John

    Ok I've downloaded your distbear program - I've entered a few sample values from my log file. In particular I've entered home long as 4057.0434882, home lat as 14540.8630513 and...
  194. Re: Calculating the distance between any 2 lat/long positions

    Hi John

    Appreciate your help - I'll work through these posts and see how I get on. In this case I'm not so concerned with where I am in absolute terms, I really need to know when I'm more than x...
  195. Re: Calculating the distance between any 2 lat/long positions

    The basic Lat /Long data is contained in $GPGGA

    $GPGGA,072810.00,4057.0426872,S,14540.8632813,E,1,8,1.20,103.877,M,,,,*25

    So, in this case the latitude is

    4057.0426872 South by 14540.8632813...
  196. Re: Calculating the distance between any 2 lat/long positions

    Hi Wastrix

    Yes, I've just been reading what I can find on this subject.

    I have a 'wayline' defined by 2 points. Point A is the start and point B is the end. Each is defined by their relative...
  197. Calculating the distance between any 2 lat/long positions

    Hi All

    I'm doing some work with super accurate (sub 2cm) GPS - I'm communicating with the equipment with no problem at all. But I am having trouble with calculating the linear distance between any...
  198. Replies
    6
    Views
    2,394

    Re: PGD and PGC used for other purposes

    Thanks John - will do, but I'm working on hardware at the moment so it may be a little while before I get into it.

    Cheers
    Peter
  199. Replies
    6
    Views
    2,394

    Re: PGD and PGC used for other purposes

    Hi John

    Les's code is rather daunting - I kinda understand what it does but there is an awful lot that is foreign to me. I see there are many posts related to this on the forum so I will have my...
  200. Replies
    6
    Views
    2,394

    Re: PGD and PGC used for other purposes

    Thanks Joe, that sounds dead easy. Next problem is - can I use Les' serial buffer with 2 USARTS? (Guess I can implement flow control on one of the serial ports if I cant) - I'll spend lunchtime...
Results 1 to 200 of 312
Page 1 of 2 1 2