Search Results - Proton BASIC community web site


Search:

Type: Posts; User: Stephen Moss

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    7
    Views
    80

    Re: Post in reverse order?

    @towlerg, I also notice that a couple of day ago. Remembering I could select the order I assumed some kind of update had reset them and so I just set them back as previously described above. Been OK...
  2. Re: PPS for 8bit Microchip Micocontrollers

    I maybe wrong as it has been a couple of years since I have done anything with a device using PPS but I seem to recall you have to do something unlock like the PPS setting/registers before you can...
  3. Re: PPS for 8bit Microchip Micocontrollers

    I think that may just be that currently nobody is certain if or how much they would use it because...
    a) So far PSS has primarly been available on only the 16bit device which few here have used and...
  4. Re: Question about Hbusin / Hbusout on PIC16F15313

    It is impossible to keep up with ever changing goal posts, especially if different devices operate differently as I would think having a whole bunch of different statements to cater for every option...
  5. Thread: Variable

    by Stephen Moss
    Replies
    5
    Views
    350

    Re: Variable

    If it not clear exactly what you are trying to do.
    Are you trying to read PortA (buttons) into a Variable to act as flags indicating which switch(s) were pressed which you then read and clear?
    If...
  6. Thread: Hello

    by Stephen Moss
    Replies
    2
    Views
    73

    Re: Hello

    Hello Cemati & wecome to the forum
  7. Replies
    10
    Views
    359

    Re: PIC16F676 External Clock Configuration

    As George said use the Fuse Configurator, it is a great tool and most Proton users use.
    Alternatively download the intended IDE replacement Proton Studio, it is still under development but has...
  8. Replies
    10
    Views
    359

    Re: PIC16F676 External Clock Configuration

    I think you best option will be to use an oscillator module (get one with both HC & TTL compatible output like this), being only slightly larger than a 8 pin PIC is does not really use much more...
  9. Re: Phase offseting PWM to prevent noise on fans

    Just spitballing here but...

    Would just placing a large capacitance of say 20-100 thousend uF on the power rail to help supply/absorb the on surge and off back emf currents be sufficient?

    How...
  10. Replies
    10
    Views
    359

    Re: PIC16F676 External Clock Confgration

    Are you trying to connect both PIC's to the same Xtal or driving one PIC from the CLKout pin of another PIC?
    If the former I would buffer the Xtal with a logic gate of some kind as the loading with...
  11. Replies
    8
    Views
    318

    Re: 16f688 going to sleep issue

    Well if you are using Timer 0 you need to configure it by writing to the Option_Reg (see page 47 of the data sheet) as determined by your choice of clock source (Xtal/4 or external) as its speed will...
  12. Replies
    31
    Views
    369

    Re: PIC 18F1330 HPWM problem

    20 registers to set up the PWM = major headache. It looks like it may be operating similarly to the PWM of the Amtel Mega 2650 (took me weeks to work out).
    As you cannot use the compilers PWM...
  13. Re: Dongle Issues with Windows 7 64 Bit. Making it difficult to use already purchased

    If you recently brought a spare dongle then I would expect it to be a HID device and not need a driver as the HID specification is defined by the USB standards and any PC with a USB port will support...
  14. Replies
    10
    Views
    651

    Re: Time to wake up! (SLEEP issue)

    It would help if you posted your entire code (including Configuration fuses) as sometimes the issue may not lie where you think it does and so without the entire code it may prove difficult to...
  15. Replies
    6
    Views
    37

    Re: Tester posting Binary Notation

    Or use Hexadecimal, which IMO is much neater and easier to read as you only have to deal with 4 bits at a time.
    Which is especially useful with Word & Long Word values where it is very easy to...
  16. Replies
    5
    Views
    43

    Re: PIC 16F18344 PORTA.5 issue

    Double check your ANSELA setting to ensure PORTA.5 is set to Digital I/O. If it is it sounds like it may be open collector, try using a pull up resistor to 5V (say 4K7 or 5K1) and see it if works...
  17. Re: Perhaps one small step to popularise Proton

    I don’t think what you are proposing will necessarily help to “popularise Proton” as…
    a) If someone is not already attracted to Proton enough to try it I do not think the presence of demos for...
  18. Replies
    8
    Views
    92

    Re: Pic18f25k20 + module i2c (pcf8574)

    I see Les had already indicated that you do not need to set up the MSSP module. I am sure someone will correct me if I am wrong but for future reference my understanding is that...
    1) If you are...
  19. Replies
    4
    Views
    81

    Re: PWM Timer Source

    I have not looked at the data sheet but it sounds like they have been using some AVR nonsence. When I had to use an Arduino to generate PWM for a 3 phase motor I spent days trying to understand the...
  20. Re: In Proteus 8 after panelisation no holes are printed on pad

    I think See Mos is correct, but I am not at work at the moment so cannot access Protues to confirm.

    When a Gerber file is generated there is usually a separate "Drill" file that holds all the...
  21. Re: Individual power supply smoothing or a dedicated board

    It depends on the situation and what is causing the noise, is it the result of high current spikes from the PWM switching or arcing of the brushes if the fans are using a standard rather than...
  22. Replies
    21
    Views
    1,038

    Re: 3x4 alpha numeric keypad

    In general you don't have to, the Declare Keypad_Port command (manual page 143) will configure the port as per the diagram shown, so RB0:3 are your Rows (outputs) and RB4:7 are your Columns (inputs)....
  23. Replies
    21
    Views
    1,038

    Re: 3x4 alpha numeric keypad

    If you used a 4x4 keypad you should get separate buttons for A-D which would be the easiest option.

    However, if that is not an option then as A,B & C will return the same as 2 and D will return...
  24. Re: Electronic roulette with PIC microcontroller

    Would that produce a realistic roulette effect though? Sounds like it illuminates and number of LED's in sequence and would then just randomly jump to the winning led.

    I wrote this as a demo to...
  25. Replies
    71
    Views
    1,263

    Re: Temperature Controller Problem

    That is because you ask for advice but when given it such as start with something small, Read the manual before coding and wherever possible to use Gosubs (good) rather than Goto (bad) you seem...
  26. Replies
    9
    Views
    28

    Re: MAX7219 help

    I think you will find the answer is on page 7 of the data sheet.
    If the decode data in the Decode-Mode register for a specific digit is set to 1 then the internal B-code font will be used (Table 5,...
  27. Replies
    71
    Views
    1,263

    Re: Temperature Controller Problem

    If you want people to help you, you need to include you whole program because...
    a) that snippet is incomplete, missing various labels and and constant/variable definitions that result in errors...
  28. Replies
    9
    Views
    31

    Re: Using procedures, best practices

    I have not really had time to play with procedures but I think the problem is that your are calling AjustarVelocidad() from Inicializar() and expecting it to use the VelocidadSerie variable when you...
  29. Re: I have made some highlight syntax for KATE

    Yes, but as the code window is the main part you look at it would be better than nothing, unfortunately I remembered that the unchangable default text colour is black and so some things cannot be...
  30. Re: I have made some highlight syntax for KATE

    There are a couple of alternative IDE's called Fineline and Proton Studio, search the forum. I don't know about Fineline but certainly Proton Studio allows you to alter the text, text background and...
  31. Re: procedures How do we buy the upgrade?

    Back when I originally posted above the I did not realise the address in the manual was wrong (I notified Les), and I just checked the manual for 3.7.1.8 to see if it had been corrected and the...
  32. Replies
    71
    Views
    1,263

    Re: Temperature Controller Problem

    First it depends on...
    a) If you are using a double pole or single pole switch connected or a single pole with a pull up/down resistor.
    b) If a latching or momentary switch will be used and
    c) How...
  33. Re: Programmer does not recognize a target device

    I was working on a project creating several units for an undergraduate experiment, in bench testing they all gave similar results, but in use they varied beyond the expected range. Voltage and...
  34. Re: Proton Studio not saving the edited file

    The only issue I have noticed recently in regard to file saving is that if I do a save and immediately try to close the IDE I get a message about it being used by another process but that is probably...
  35. Replies
    71
    Views
    1,263

    Re: Temperature Controller Problem

    This is not very helpful as we have no idea of where you are getting you newvalue from, consequently it is difficult to determine if your comparison is the correct way around. To me it looks like you...
  36. Replies
    1
    Views
    13

    Post editing test

    Can I edit this after posting?

    Yes I can
  37. Re: Prescaler divider other than 1:1 causes the PWM module in PIC10F322 to stop worki

    I think the problem may be with the PWM1 code.
    If I understand the original post correctly the period is fixed and a variable duty set by the ADC value is required, in that case should not...

    ...
  38. Replies
    71
    Views
    1,263

    Re: Temperature Controller Problem

    How could you get anything resembling a V and R on a 7 segment LED display? I would think the closest would look more like U and A.
    Do you need the display size and visibility at distance you get...
  39. Replies
    71
    Views
    1,263

    Re: Temperature Controller Problem

    Here is some pseudo code to get you started, between that and the information in the manual on arrays and for-Next loops you should be able to get it working.


    Dim Data_Array [10] as Byte ...
  40. Re: clear and interrupt handler - problem?

    Close John but it as Dim bVar as Byte = 5
  41. Replies
    42
    Views
    89

    Re: Web site advertising

    Make sure you check both you antivirus software and your browser for Ad/banner blocking settings. I got tripped up with that one as I initially missed it in my antivirus software, when I found it I...
  42. Replies
    71
    Views
    1,263

    Re: Temperature Controller Problem

    I am not sure what you mean by thermocouple break, I assume you me a defined switching (i.e. on/off) point.

    I cannot see where your initially set the variable "value" to a number, consequently...
  43. Re: procedures How do we buy the upgrade?

    Instructions can be found in the Proton (not Proton24) manual at the bottom of page 3.
  44. Replies
    4
    Views
    7

    Re: ASM Error [108]

    See the bottom of page 3 in the Manual for instructions
  45. Re: Help with ppi and def files for 24FJ256GA704

    You may be correct, although from a quick cursory scan through sections 4.2.5 & 4.3 of the data sheet as well as the EDS document in the note at the beginning of section three I get the impression it...
  46. Re: Help with ppi and def files for 24FJ256GA704

    In the PPI file the register names I2C1CON (added to solve compile issue), I2C1CON1 and I2C1CONL (both pre-existing) are just different user friendly aliases for the same register (all have the same...
  47. Re: Help with ppi and def files for 24FJ256GA704

    I think the problem is that on some devices that have multiple registers associated with something the first register is terminated with a number and on other devices it is not, i.e.
    Device 1: is...
  48. Re: Compile to HEX from Assembler plugin - HELP

    I don't know about using the assembler plugin this way as I (and I suspect most) users have never tried it as we code in Basic and let the compiler do its thing. Consequently, there may only be one...
  49. Re: PIC24FJ256GA705 Family Devices Are They Fully Supported in Proton 24 ?

    There are no device files for P24/33 devices in that folder and as far as I know there are no .inc files for them, only .dev files but...
    a) They may have been the source files used to create the...
  50. Re: 300 new BNF files (names only - no comments)

    Compiler Keyword Conflicts:
    I had not realized when producing the bitname files that some of the BitNames used by these devices are also compiler keywords (i.e. If, Sleep, Swap) which is obviously a...
  51. Replies
    23
    Views
    752

    [SOLVED !] Re: Help for Fatigue testing controller

    It is boring and you might have to do it several times to understand it but try reading the data sheet, it is as I said the compiler now automatically sets all pins to digital but if you want to do...
  52. Replies
    13
    Views
    504

    Re: random number in Edata

    The code Harm suggested is similar to my ADC suggestion in that uses bit 0 of consecutive ADC reads of a floating ADC pin to fill a byte of data (as opposed to all 8/10 bits I suggested). I am not...
  53. Replies
    11
    Views
    29

    Re: Setting the A/D range to 1Volt range

    Unless I am missing something if the AN2 & AN3 pins are available you just configure the ADC to use external Vref- & Vref+ voltages set via a method of your choice to 2V & 3V respectively. Then you...
  54. Replies
    13
    Views
    504

    Re: random number in Edata

    Your problem is that it is difficult to get a truly pseudo random number. I do not know how the Random instruction generates a number but any random number generator starts with a seed value, if that...
  55. Replies
    23
    Views
    752

    [SOLVED !] Re: Help for Fatigue testing controller

    It would help people if you could be a little clearer with your description of the problem...
    "what is wrong with my code,all leds on PORTA lights up" is unclear as it does not give us much to go...
  56. Replies
    23
    Views
    752

    [SOLVED !] Re: Help for Fatigue testing controller

    This may do what you want, if not then I am out of ideas/unable to understand what it is you want to do as initially it sounded like you want in increment both inset and intime as a count and now it...
  57. Replies
    23
    Views
    752

    [SOLVED !] Re: Help for Fatigue testing controller

    intime will increase while PortD.0 is low because that is what you have told it to do

    If PORTD.0=0 Then Inc intime
    If you meant to say intime is increasing while PortD.1 is low and it should not,...
  58. Replies
    23
    Views
    752

    [SOLVED !] Re: Help for Fatigue testing controller

    It is not clear how you are incrementing your set point counter as you have not provided any code or other information but if you are simply incrementing a variable value surely placing the increment...
  59. Re: ADC alternative way to capture Data using nbuilt Fix voltage reference

    At first I thought this was relating to simultaneously using the FVR as the ADC reference voltages and measuring the FVR voltage with the ADC, highlighting the difference between the reference...
  60. Thread: Usb - c

    by Stephen Moss
    Replies
    9
    Views
    13

    Re: Usb - c

    I have not checked the USB documentation but if that is correct they should consider replacing the word Serial with some a little shorter.
    Finding the right USB cable to charge a device with can be...
  61. Replies
    23
    Views
    752

    [SOLVED !] Re: Help for Fatigue testing controller

    I assuming you want to read a potentiometer and for that reading to set your time delay.
    If that is correct then...
    Read Potentiometer value, use ADin Commands (unless you prefer writing to the...
  62. Re: 300 new BNF files (names only - no comments)

    Personally, I would probably check the datasheet anyway as it is not always clear from the description what the function is or if it needs to be set to a 1 or 0, particularly as that may be...
  63. 300 new BNF files (names only - no comments)

    I know that many if not all of the PIC24 and PIC33 devices supported by Proton do not have BitName files and having to enter them by hand is a bit of a pain so having a couple of free days I wrote...
  64. Re: Writing parameters in the Flash memory of a PIC24

    I may be wrong but as I understand it you need to use the Ptr commands.
  65. Re: PIC24FJ256GA705 Family Devices Are They Fully Supported in Proton 24 ?

    Probably just a typo, anomalies like this do occasionally appear in the PPI files. I have only checked the 24FJ256GA705 file but all the relevant registers are there with the correct addresses so I...
  66. Replies
    21
    Views
    25

    Re: 16 leds to drive, how?

    I have never used one but would a digital pot give enough of a suitable variation to work? That said a variable current is probably more precise that variable resistance.

    How about a summing...
  67. Re: Streaming the same audio track in real time to two different locations

    I would have thought the company building the display would have off the shelf solutions for getting the signal there but if you really want to create your only solution I can only think of three...
  68. Replies
    23
    Views
    752

    [SOLVED !] Re: Help for Fatigue testing controller

    For UP and UD have you tried try replacing DEC0 with DEC, as those are word values and not floating point.
    By specifying the number of digits to display after the decimal point you may be tripping...
  69. Replies
    15
    Views
    33

    Re: Changing EDA software

    I tried KiCAD as for some reason it was being recommened to students at work and I did not like it, I did not like the workflow/interface and thought parts library was poor but that does not mean you...
  70. [SOLVED !] Re: Ports not working when using PORTA = %111111

    The fact that writing each bit individually appears to solve the problem does suggest it may be a compiler issue but does not conclusively eliminate a device/design issue.

    Typically I would say...
  71. Replies
    10
    Views
    23

    Re: Procedures return parameter

    I like you am just getting into trying procedures by converting an old working program so that I can see if the output and thus my code is correct. Hense, I may be wrong but I believe it is to the...
  72. Replies
    5
    Views
    8

    Re: ADC Help on Pic 24 Please?

    If it works with a pot then you code is probably fine.
    I am assuming you are using a R-2R ladder, but regardless of that are you driving the output of the ladder directly into the ADC or are you...
  73. Re: PIC24FJ64GB004 To A 2x16 Alpha LCD ?

    You do not appear to have declared the display type.

    This is my setup for a 24FJ64GB002 device with a 2x16 Alphanumeric display (PIC = 3.3V, LDC = 5V, 3.3V into the LDC - no 3.3V to 5V...
  74. Replies
    5
    Views
    9

    Re: Oven temperature issue

    Sound like you have replaced the original temperature sensors, if so was that a k-type for k-type replacement or not?
  75. Replies
    14
    Views
    16

    Re: Remote programming with Pickkit2

    it is unclear as to exactly the method you will be using to get the updated code to your customer although it sounds like you intend to send them a pre-programmed PICKit 2, in which case you would be...
  76. Replies
    13
    Views
    22

    Re: Internal clock calibration

    I noticed this post the other day but did not reply as I did not understand the question, are you taking about an internal time/date clock or the system clock?

    I may be wrong but from the brief...
  77. Replies
    4
    Views
    5

    Re: Don't care bits

    I agree with tumbleweed, use the default of the register summery/power on values is a good approach, but if it is a don't care then surely you can set it to a 1 or 0 depending on your whim at the...
  78. Replies
    42
    Views
    89

    Re: Web site advertising

    I did have "Ad blocking" set in the browers but set or not set did not make any difference, as you and Dompie indicated no problems, it had to be something specific with my set-up.
    After a long...
  79. Replies
    6
    Views
    7

    Re: Vertical Lines

    You could download Proton Studio, it is still under development but very usable. It includes a PDF viewer, has code folding and being written by John Barrat many of his plug-ins such as the Fuse...
  80. Replies
    42
    Views
    89

    Re: Web site advertising

    Apologises if this is in the wrong place but I think it may be related as I believe it started around the time ads were introduced.
    When using the quick reply everything is fine, but when I used the...
  81. Re: Dongle Issues with Windows 7 64 Bit. Making it difficult to use already purchased

    I am sure somebody here will know the answer but in the meantime...
    a) search the forums as driver issues has been discussed before as the solution my lie there &
    b) if your PC has multiple user...
  82. Re: Detecting for the presence of pulses not using interrupts

    I think the ADC sampling of the RC circuit could work however...
    Unless I have misinterpreted it the initial suggestion sound like you have an RC connected between the supply rails (C to Ground) and...
  83. Re: Request for Assistance - PIC16F15323

    It has been a while since I have used the compiler so I may be wrong but...
    1) I thought the End command stopped compilation, consequently your Subroutine never gets compiled. Try placing your...
  84. Replies
    41
    Views
    95

    Re: Advertisement on the forum

    I think this is the crux of the issue, you may have many registered forum users/unregistered visitors but it is only the "usual crowd" that...
    a) use it often enough to want to keep it going and ...
  85. Replies
    7
    Views
    20

    Re: Log in problems again.

    I cannot say I have noticed any log in issues since ADs were introduced.
    I occasional encounter them, either my saved name and password not appearing in the boxes or being rejected and getting the...
  86. Replies
    41
    Views
    95

    Re: Advertisement on the forum

    I cannot say that I noticed any slowing down of the forum due to the ads, although I am not sure if that is down to network speed or the browsers AD blocker as I only a white space with a text link...
  87. Replies
    2
    Views
    5

    Re: AVC - Washing Machine Super Duper

    No sure but steppers and servos usually rotate and from the videos it is more an in/out movement, also I am not sure you can get them small enough to meet the specified height of the unit while...
  88. Replies
    10
    Views
    24

    Re: FUSES for PIC18F47K20

    It is built in to John's new Proton Studio IDE as are many of Johns other plugins such as Bookmarks, the P24 PPS Select and Interrupt wizards as well as other features like Project management and...
  89. Replies
    10
    Views
    24

    Re: FUSES for PIC18F47K20

    As Les said it would be impractical to list the fuse for the devices in the help and that is not really the purpose of the help anyway as the fuses are to do with the device not the compiler or IDE,...
  90. Replies
    2
    Views
    5

    Re: MID$ Problem with a PIC18F25K22

    By "not running" do you meant not at all, it does nothing, or that it does something but not do what you want it to do.

    I assume you want to multiple numligneajust by 23, then add 4 to it and to...
  91. Replies
    14
    Views
    11

    Re: PIC18F1330 PLL problem

    All looks OK to me, however I noticed some of your settings mix upper and lower case i.e. High & On instead of the all uppercase HIGH & ON that are normally used. I wonder if that is upsetting the...
  92. Replies
    7
    Views
    13

    Re: Watchdog timer

    A watchdog timer is just like any other timer, it has a size (Byte or Word) and prescallers so that you can set the Watchdog timer to overflow at a time period of your choice, 10uS, 100mS, 1S and so...
  93. Replies
    36
    Views
    78

    [SOLVED !] Re: Mysterious PORTB problem

    A few comments...
    1) It is helpful if you include your entire code so that people can check everything including you fuse configuration, for example you are setting GIE but we cannot see if you have...
  94. Replies
    25
    Views
    19

    Re: Delphi or Visual Studio etc. ?

    I have never tried Delphi, but have used Visual Basic/Studio for many years.
    If you are used to Basic then it should be quite easy to pick things up the basics (no pun intended), but considering...
  95. Re: Compiler give error if more than 50 times is used directive "Include"

    What on earth are you doing with all those include files?

    Big programs are a pain to navigate (although you can jump to a label by clicking it in the code explorer) and include files are a good...
  96. Replies
    13
    Views
    43

    Re: PORT INDEX help-me

    I thought that as well when I first noticed its implementation, sitting there trying to work out the number over using the High & Low commands initially seemed more trouble than it was worth, but it...
  97. Replies
    13
    Views
    43

    Re: PORT INDEX help-me

    I am sure I have seen this explained in a post somewhere although I cannot remember where. The manual says...


    Therefore I believe values...
    0 - 7 = PortA (0-7 respectively)
    8 - 15 = PortB (0-7...
  98. Replies
    5
    Views
    8

    Re: Downloadsite not entirely clear

    Yes, that is the Latest install verison.
    Having asked in another thread you do not need to install all the update/patches produced since then in order you can just jump straight to the latest...
  99. Replies
    8
    Views
    9

    Re: Logic Analyser

    Not sure how good PulseView is, it says it is compatible with my USBee SX bit did not recognise it.
  100. Re: 24EP256GP204 external interrupt problem

    Not really, I was perhaps half way, the problem with wanting to use it as a host is it is damn complicated, consequently there is no help on the internet (unlike for slaves) as people give up either...
  101. Replies
    103
    Views
    131

    Re: Malware on this website?

    I may be wrong as I know little about running forums and PHP (if that is what they still use) but...
    a) I would think that item 1 would also require item 2 as without knowing precisely what link is...
  102. Re: 24EP256GP204 external interrupt problem

    I have not played with 24 series devices much and not for over a year but I noticed you start you ISR with..

    Isr- INT1interruptwhere the syntax in the manual is...

    Isr INT1Interruptnotice the...
  103. Replies
    33
    Views
    773

    [SOLVED !] Re: Pulse counter using COUNTER command

    I am a little confused here as from the DG values in the FDN section I would have thought that 0 = on and 1 = off (Common Anode display), but here you appear to be stating the opposite as with only...
  104. Replies
    33
    Views
    773

    [SOLVED !] Re: Pulse counter using COUNTER command

    There are several different types of 7 segment display, those with just the seven number segments (a-g) and those with an additional DP or Colon (":" for clocks). If your displays are the type with...
  105. Replies
    33
    Views
    773

    [SOLVED !] Re: Pulse counter using COUNTER command

    Just a few suggestions..

    1) Have you tried just setting your all DG values to %1111111 and commenting out all you main code except for Gosub DISPLAY just to check that you are actually displaying...
  106. Re: johngb has just uploaded Proton Studio Ver 1.0.1.6!

    I just downloaded (09:10 GMT 22 Aug.) both the IDE and help file without any problem.
  107. Replies
    2
    Views
    15

    Re: Anybody speak Microchip?

    I assume you are referring to Register 5-3 and its MCRL bit.

    If you look at Register 5-8 where the LVP bit is, it indicates the when...
    LVP = 1 (on) MCRL is used as MCLR and the setting in...
  108. Replies
    1
    Views
    6

    Re: link to Fuse software

    There is no need to cross post the same question to three different areas, many people find it annoying particularly when a simple search should have reviled the answer. If you were not sure where to...
  109. Replies
    103
    Views
    131

    Re: Malware on this website?

    I am not sure how accurate an indication this is but having performed a search for posts made in the last month or newer, I then cut and pasted all external links from within the entire thread not...
  110. Re: Not supported commands for 12-bit core devices

    I would assume that if it says it cannot be used then that is the case even if the device has an ADC as there may be issues other then the absence of an ADC that would prevent it working, there is...
  111. Replies
    38
    Views
    47

    Re: Proton Studio

    Hi John,
    looks like a lot of work has gone into writing the new IDE and I am sure it is not easy trying to make improvements to something while retaining a lot of the functionality and layout people...
  112. Replies
    6
    Views
    21

    Re: Resistor measure with pwm and adc?

    Are you certain that is what they are doing?

    I would think that a capacitor has to be involved somewhere to crate an average voltage for the ADC to read, I assume you could not see a capacitor...
  113. [SOLVED !] Re: Latest compiler updates (2018) - will upgrade any version?

    @Les, thanks for that.
    It's good to know I can skip straight to the latest version when I eventually update - I just wanted to be certain that the latest update did not require having certain files...
  114. [SOLVED !] Latest compiler updates (2018) - will upgrade any version?

    I was not sure where the correct place for this would be without cross posting to both the Proton & P24 forums so apologies if it is in the wrong forum.

    There have been quite a few compiler...
  115. Replies
    9
    Views
    124

    Re: Is SPI SHout interruptible

    I looked at trying to write my own I2C slave routine but being a non urgent project I did not get to far with it, however I believe that separating the address from the data is handled at the...
  116. Replies
    11
    Views
    23

    Re: Timer1 overflows

    I think it is not working is because you have not set up the interrupts, I have only had a quick glance at the datasheet so I suggest you read section 10 (Interrupts) thoroughly incase I missed...
  117. Replies
    6
    Views
    13

    Re: Pic24 and LCD display question

    I have use an LDC with the same spec on a PIC24 device, this set up worked for me on a different device to yours so hopefully it will for you without to much modification in regard to the...
  118. Re: Question for C/C++ and VB programmers

    Sorry, I was having a senior moment, been stuck getting my head around VB multithreading and forgot DLL's were essentially separate executables and some kind of importing would probably be necessary....
  119. Re: Question for C/C++ and VB programmers

    Hi Harm,
    I presume you have a reason from not making the variables global and thereby avoiding the hole parameter passing thing. I know more about VB than C but just had a quick scan through my C...
  120. Thread: 16f720

    by Stephen Moss
    Replies
    7
    Views
    20

    Re: 16f720

    Strange problem, it is almost as if the MCRL is stuck in the clear and not allowing the code to run, although that would seem unlikely.
    One thing I do know that will stop perfectly good code...
  121. Replies
    7
    Views
    29

    Re: Easier way to initialize EEPROM

    I assume the EEPROM data contains an initial default value, if so and it is not a value that you would expect to occur within your application then you could read the first address (or first & last)...
  122. Replies
    10
    Views
    36

    Re: HPWM low frquency limitation

    Have you considered putting the PWM output through a divider IC? Depending on the division ratios and the set frequency from the PIC you should be able to get close to 20Hz.
    You say "starting from...
  123. Replies
    3
    Views
    22

    [SOLVED !] Re: Fuse Configurator doesn't open

    Which version of Proton and the Fuse Configurator are you using as you may be using versions that are incompatible with each other.
    Also try this
  124. Replies
    5
    Views
    7

    Re: Same code different pic

    The 16F628A has one fixed internal oscillator frequency of 4MHz. It looks like you have made the dangerous assumption that the 16F723a is the same, when in fact it has eight possible frequencies...
  125. Replies
    15
    Views
    29

    Re: Re. latest vweaion 3.6.0.7

    That's poor, although as an acronym DDR is better at doing what it says on the tin than TRIS they should either...
    a) Stick to the Microchip convention (particularly as they are the parent company)...
  126. Replies
    20
    Views
    100

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

    Search the manual for the Dig command to extract the digit you want to display and using that in you DIGITCALC routine, it may make for more readable code and save a few instructions.

    If you...
  127. Replies
    30
    Views
    56

    Re: PicKit 2 stopped working

    I see Rick beat me to suggesting the sfc scan, AFIK it only looks at critical Windows system files so unlikely to help but I always try that first just in case it proves to be a quick and easy fix...
  128. Re: Prgramming 18FXXXXX chip with USB on board

    Yes, we used to run a undergraduate project work where the students had to program a PIC (18F4550) to operate as a data logger, the PIC was programmed via the USB using a pre installed boot loader on...
  129. Replies
    5
    Views
    67

    Re: Other ports use for interrupt

    How about using a Timer interrupt to read the port pins say every 100mS?

    Within the interrupt do something like this...


    Rotary_Data_Old = Rotary_Data_New 'Make previous new encoder data...
  130. Replies
    10
    Views
    34

    Re: Persistence freq for Led Bargraph

    Well I was taught that persistence of vision (the time it takes an image hitting the retina to fade) a.k.a. POV is 50Hz. I have driven an 8 digit 7 segment display at just around that and...
  131. Replies
    7
    Views
    17

    Re: Problem with Shin

    Difficult to see the problem from the waveform grabs especialy as it is not clear if the grid is on the same timebase for all plots and what that timebase is. Looking at them I would deduce that......
  132. Re: Base biased PNP transistors running at > Pic VDD

    I was also thinking that, I would think using NPN would be the better solution when the other supply is higher than the PIC output voltage + vgs/2 as you just drop all the voltage across the load.
    I...
  133. Re: Dual brushless motor control (how to?)

    Correction to my previous post...
    I suggested ANDing the three Hall outputs to a single signal to save on IOC pins, that will not work as I forgot they change in a grey code sequence. Consequently I...
  134. Re: Dual brushless motor control (how to?)

    I assume you are talking about a 3 phase bldcm, if so I have recently been working on that (fixing issues created by others) in a design that uses the Infineon DC motor control shield with BTN8982...
  135. Replies
    3
    Views
    10

    Re: Convert 4-20 mA to 1-9 mA

    Assuming you are talking about a mathematical solution using a PIC and not an analogue circuit solution then unless I am missing something the answer is deceptively simple...
    first subtract 2 thus...
  136. Re: Continuation character for variables

    How good are your binary to hex, hex to binary skills?
    I prefer to use hex instead of binary wherever I can even for 8 bit values as it break it up into small easy to manage 4 bit chunks, i.e. your...
  137. Re: Support for Les... a change of heart?

    It is not clear to me if you are referring to producing Arduino type shields for PIC development boards or an Arduino equivalent PIC development board?

    If the former will there be sufficient...
  138. Re: Free up some memory by reducing Print command?

    I had a look at an old program (18F device) and every time I used the print command to print 2 lines of 16 character text it required 20 lines of assembler in addition to that taken by the compilers...
  139. Re: Something has changed on the forum....

    I have not lost my avatar although I did notice the lack of code and other formatting buttons when I posted yesterday, although I remembered the code tags were code within [] (opening) and /code...
  140. Replies
    5
    Views
    20

    Re: PC Video player question

    Check to see if Silverlight and Adobe Flash player plugins are installed as I believe one or the other of these is generally required for correct video playback depending on who the webpage is...
  141. Replies
    30
    Views
    47

    Re: UltraEdit adaption.

    Perhaps a specific sequence of comment characters could be used to indicate the start of foldable sections, for example if the special comment was ;:: (assuming ";" is the standard comment indicator)...
  142. Replies
    12
    Views
    24

    Re: Correct use of bit names

    Other than perhaps the additional spaces (if in your actual code) used to align the = INTCON.x text I cannot see where the problem could lie as the following works for me (12F675)


    '~~~ Configure...
  143. Replies
    7
    Views
    24

    Re: Downloading of proton installer

    No problems for me either.
  144. Replies
    5
    Views
    8

    Re: Question on circuit grounding

    Hi John, you are certainly correct in that it could create a ground loops in relation to connecting the screen to Earth.

    However, I advocated not connecting the internal DC 0V to Earth and...
  145. Replies
    5
    Views
    8

    Re: Question on circuit grounding

    Unless there is a pressing need to connect 0V to mains Earth which in my experience is extremely rare I do not think I have ever done it, it can cause ground loops. Instead I usually Earth a metal...
  146. Replies
    29
    Views
    44

    Re: What is the fuss about arduino

    I have to agree, C is a horrid language, the syntax is bad and the way it is formatted is also bad, splitting what can be achieved in a single line of BASIC to 6 lines in C. Makes reading code very...
  147. Replies
    9
    Views
    27

    Re: 18F86J55 Oscillator configurations

    The clue is in it working correctly with the removal if the include files, either the include files contain a different configuration or themselves have an include file which contains a configuration...
  148. Replies
    11
    Views
    46

    Re: 16F18326 - I cannot initialize

    I was hoping it would be a simple fuse issue as generally it looks ok however, I cannot remember if aliasing symbols to the LAT register is allowed so try changing...
    Symbol LED = LATC.2 to Symbol...
  149. Replies
    11
    Views
    46

    Re: 16F18326 - I cannot initialize

    I cannot remember how the compiler feels about using lower case text or mixing lower and upper case for fuse names but in any event your included FEXCTOSC twice which may be throwing the compiler...
  150. Replies
    13
    Views
    23

    Re: Dog finder

    Surely a fence/hedge with no holes in would be simpler.
    Alternatively get physiological, as the dog only disappears when you are not keeping an eye on it how about a picture of yourself in the...
  151. Replies
    13
    Views
    7

    Re: Select a choice of include file

    I am not a USB expert but I have looked into a little wanting to build a PIC host (proof of insanity if any were needed!) and I have not touched my project in a year so my understanding/recollection...
  152. Replies
    8
    Views
    34

    [SOLVED !] Re: I2C Slave problems with 12F1840

    I think you may need to look at your OSCON register settings, as you only list 6 bits I am not sure if they are the upper or lower 6, either way I think that would result in either a 2MHz or 125KHz...
  153. Re: Installation Error with addins after new installation in Windows 7 64but

    Sorry, I forgot to mention you have to turn on "show hidden folders" as I automatically set that with every new PC generally being the sole user.

    If you enter "show hidden" in the task bar search...
  154. Re: Installation Error with addins after new installation in Windows 7 64but

    Is there just the single account on the PC or multiple accounts?
    If multiple accounts (even if they are also admin accounts) try installing from the primary admin account as opposed to your admin...
  155. [SOLVED !] Re: declaring crystall values when using chip pll

    You may find http://www.protonbasic.co.uk/content.php/3960-Crystals-PLL-s-Proton useful for the different ways you can tell Proton about the oscillator speed and when they can be used.
  156. Replies
    3
    Views
    7

    Re: LCD problems

    Not exactly giving us much to go on there, i.e. ...
    Graphical or Alphanumeric? 8/4 bit parallel or serial data?
    Using Proton commands or rolling your own (your code would be useful)?
    If...
  157. Replies
    7
    Views
    13

    Re: Coming out of an ISR

    I am probably missing something and my solutions too simplistic as I am not that familiar with what you are trying to do or stack manipulation but...

    If you know the location of the start of the...
  158. Replies
    9
    Views
    16

    Re: Addressing arrays

    I think this may be a question only Les could answer definitively.

    I am not sure that is possible, while it is possible that as your variable is word sized the compiler may try to read a word from...
  159. Replies
    34
    Views
    1,053

    Re: i need help for 12F1571 pwm

    I have not had time to take an in depth look at the data in regard to the PWM operation of the device however a couple of things struck me...

    1st, you are only assigning 6 bits to your registers...
  160. Replies
    2
    Views
    8

    Re: No Clock at all

    Depending on how old you code is and how up to date you version of PDS is there was a change a while back in regard to some declares, for example
    XTAL = 20 should now be Declare XTAL = 20, perhaps...
  161. Replies
    14
    Views
    19

    [SOLVED !] Re: Pre-Defining Variables

    I do not really understand the Pre-Processor, hopefully Les will provide the definitive answer as to if it can do that but from what I little I do understand I get the impression that is not what it...
  162. Replies
    7
    Views
    17

    Re: PULSEIN Minimum Unit Time

    The manual instructions indicate it uses a timer but not if that is its own timer or one of the PICs onboard timers, nor does it mention how it uses the timer (Les or a look at the assembler code...
  163. Re: 18F4550 'Verification of Configuration Failed'

    It may be accademic now but yes I was using the 40 pin DIP version.
  164. Re: 18F4550 'Verification of Configuration Failed'

    I doubt that Code Protect is enabled as that would make it had to use as an eval board if you cannot program it, plus you say you can load an LED program to it and it is complaining about the...
  165. Re: 10F200 and 12508/9 Calibration Data Error

    Good luck with that, I can hardly see them issuing a refund for something that was essentially your fault for not reading the datasheet and understanding that erasing the device would be an issue....
  166. Replies
    8
    Views
    11

    [SOLVED !] Re: Test Drive With Proton

    The compiler uses its own default fuse (configuration bit) setting if you do not enter any yourself, however it only sets the most basic ones that will usually enable the code to run but not always,...
  167. Re: 10F200 and 12508/9 Calibration Data Error

    As I recall these devices have an oscillator calibration value programmed into them at production (usually in the last memory address - check oscillator section of the data sheet for address). This...
  168. Replies
    4
    Views
    204

    Re: SPI Slave reg HB LB Vers LB HB

    Would using the swap command solve the problem?

    If you are storing your data as one large variable instead of 3 variables for Config, MSB & LSB you may have to do this first...
    Dim x as word
    Dim...
  169. [SOLVED !] Re: How to prevent NE556 from overheating?

    I am sure there is a timer expert her somewhere that will know the answer, it certainly should not be getting hot.

    I find timer IC's either work or a total pain in the ass so I am with Simon - use...
  170. Re: New Project _ Source Meter and measuring small currents

    Years ago I built a current meter 0-10mA with a basic differential amplifier circuit (LT1006) measuring the voltage drop across a 1cm length of PCB track, so in reality is was a really a something...
  171. Replies
    10
    Views
    338

    Re: max7219 to control world capitals

    If you do not like any of the previous suggestion have you considered using four PCF8574 I2C expander IC's.
    You only need to use the two lines from the PIC for the I2C bus to send the correct data...
  172. Replies
    1
    Views
    196

    Re: 16f628A portb.4 problem

    It is always best to turn of the LVP if you do not need it as spikes and other things can sometime put the device into programming mode thereby stopping the PICs operation.

    I would advise...
  173. Re: PDS ABOUT screen + display magnification

    There should be a way of changing the default font sizes to make things easier to see, although I cannot find it at the moment (looks like another thing they have hidden in Win 10). I did find...
  174. Replies
    3
    Views
    282

    Re: Analog comparator on 16F88

    Hi Rick,
    I think the problem is that you are trying to use the internal voltage reference as one of your comparator inputs and output it on pin RA2. However, section 14.0 states that the internal...
  175. Replies
    5
    Views
    296

    Re: Using harware SPI

    Obviously you will have to set up the SPI related registers for it operate the way you want it, but after that the following has worked for me in the past on an 18F2410, it may be different on PIC24...
  176. Replies
    11
    Views
    636

    Re: Waveform generator

    I am sure someone must have done this before (see http://www.protonbasic.co.uk/showthread.php/55635-Frequency-Generator), if you have not yet tried searching the forum I suggest you start there,...
  177. View Post

    Perhaps it is the way I am reading that, but that statement could give the impression that both pots are connected in and operate as a pair of parallel resistors (making Rtotal 5K).
    They are only...
  178. View Post

    The potentiometer used in the PS controllers are just standard 10K potentiometers, the only difference is the spring mechanism that biases (forces) it to the center point when it is not touched.
    If...
  179. Replies
    23
    Views
    1,356

    Re: Runtime symbol or variable assignment

    If think I have assigned the port pin number to a variable before and it worked, however as I cannot find the code I may have imagined it, perhaps the following would work...


    DIM Apin as BYTE...
  180. Replies
    23
    Views
    1,356

    Re: Runtime symbol or variable assignment

    Are you trying to change the port pin from and input to an output and then set it high or just set an existing output pin high?

    I would think that...

    Select POSITION
    Case 1
    Output TRISA.0 :...
  181. Re: Help setting up 18f4331 to run at 40 Mhz

    First, as John said, use the Fuse configurator as it can save a lot of trouble especially when microchip decide to retrospectively chance the fuse names resulting in a mismatch between the fuse what...
  182. Replies
    15
    Views
    1,354

    Re: I need help setting up the 18F13K22

    If you look at Figure 2.1 (Clock Source Block Diagram) you will see that by selecting the internal oscillator (OSCCON <1:0> = 1x) source to the System Clock multiplexer the system clock will come...
  183. Replies
    17
    Views
    1,114

    Re: Dropping 24v AC to 12v

    Transformers are not cheap, even if winding your own.

    Maybe there is something I am missing however I presume the 24V AC is coming from an existing transformer inside the unit, if so is the...
  184. Replies
    4
    Views
    601

    Re: Problem with Declare Bootloader = On

    Does the problem persist if you change...

    Dim ReadNewBlockToWrite As Word At DwordNewBlockToWrite.Byte0 to
    Dim ReadNewBlockToWrite As Word At DwordNewBlockToWrite.Word0

    as it may simply be...
  185. Re: SSD1306 OLED driver problem with 64Mhz 18F26K22

    I am just speculating here but it might simply be that with the faster clock speed the PIC will be executing comments before the "Display_INIT" statement faster which may be resulting in it trying to...
  186. Replies
    13
    Views
    1,146

    Re: If Then problem.

    You could also use Select Case



    If huidig = 20 then
    Select Uren 'Variable under Test
    Case <>12, <>22 'Conditions to be met for code to execute
    If Verwarming <>...
  187. Replies
    2
    Views
    449

    Re: How to decrement /increment a var

    Does the value of a timer decrease without loading a specific value into it? I thought they only increase in value, at least when not rolling over to 0.

    Are you trying to increase the value of...
  188. Replies
    4
    Views
    536

    Re: LCD 4 bit parallel connextions

    On PIC24 series devices which have 16 bit ports you can use any of the four bytes, which one you use is determined by the value after the port name, i.e
    Port.0 = pins 0 - 3
    Port.4 = pins 4 - 7...
  189. Poll: Re: One off project with DIP PIC, solder or socket?

    It really depends on two things...
    a ) the end application and
    b ) the soldering skills of the end user

    For production of a finished product soldering would be better.
    For a hobbyist where...
  190. Replies
    9
    Views
    1,472

    Re: Plugin problems

    Only had a quick play for a couple of minutes but it installed and works correctly for me. Win 10, 64bit, Kaspersky, IDE 2.0.3.3, Compiler 3.5.6.8


    I also fail to see the point in such a plug in...
  191. Re: Declaring PROTON_START_ADDRESS for bootloader

    There is a "Proton24_Start_Address" listed in the compilers protected words so try that, not sure about the Org issue as I have never needed to do that.
  192. Replies
    20
    Views
    1,697

    Re: Device = XXXXXX duplicated

    I suspect 99% of the time people use the Paste to IDE option thus I am not sure such a feature is worth adding for the odd occasion when people want to do something exotic as it is not a lot of work...
  193. Replies
    20
    Views
    1,697

    Re: Device = XXXXXX duplicated

    I presume this in regard to the updated version released a few day ago as I am still using configurator MK2 V3.3.0.6 with IDE 2.0.3.3 and complier version 3.5.8.5 and am not having any issues.
  194. Replies
    5
    Views
    1,138

    [SOLVED !] Re: 16F687 disable osc1-2 pins

    The Fuse Configurator plugin can be found on page 2 of the Plugin section of the Wiki and can save people (particularly beginners) from many config fuse related headaches such as entering data...
  195. Replies
    6
    Views
    1,428

    [SOLVED !] Re: Possible duff key?

    I had a similar problem compiling a few months ago where for a couple of weeks it would taking several goes to compile however the problem appears to have resolved itself.
    Perhaps a Windows update...
  196. Replies
    3
    Views
    630

    [SOLVED !] Re: PIC24HJ128gp current question.

    I do not know if it is normal for that PIC however the briefest of glances through DC characteristics for Operating current (Idd) provides a large array of results and certainly indicate that under...
  197. Re: Are PIC24 devices really worth the grief, am I alone.

    If you do not need the speed, PPS or USB Host functions then it is probably best to leave them alone however if you do you need those features then you have to expect some teething problems as they...
  198. Replies
    6
    Views
    894

    [SOLVED !] Re: Need help with fuse config :(

    Sometimes you just need to read the relevant sections of the data sheet a couple of times to make sure you understand them. Sorry, that should have been INTIO67 - finger trouble while typing.
    Using...
  199. Replies
    6
    Views
    894

    [SOLVED !] Re: Need help with fuse config :(

    If you have read the data sheet it really should not be a surprise that RA6 and RA7 are unavailable when you select the primary oscillator as the Oscillator source because they double as the external...
  200. Replies
    10
    Views
    1,815

    [SOLVED !] Re: ADC converter 16F626

    It is not clear from the manual if the ADIN_RES command also sets the ADC results to Left justified, if not it may look like you are getting 16 bit values because for 10 bits you need to read a word...
Results 1 to 200 of 484
Page 1 of 3 1 2 3