Search Results - Proton BASIC community web site


Search:

Type: Posts; User: ricardourio

Search: Search took 0.01 seconds.

  1. Thread: Read HX711

    by ricardourio
    Replies
    25
    Views
    9,055

    Re: Read HX711

    It uses its own protocol, not a regular pattern.

    Ricardo Urio
  2. Replies
    7
    Views
    422

    SensorTile.box

    Hello,
    Here is a real nice (and cheap) ioT device.
    https://br.mouser.com/images/marketingid/2019/microsites/171560581/171560581Overview.png
  3. Replies
    3
    Views
    169

    Re: Proton Basic x Mplab XC8

    George is correct. I want to compare the same program with different compilers. I would like to show the Proton efficiency for some programmers.

    Ricardo Urio
  4. Replies
    3
    Views
    169

    Proton Basic x Mplab XC8

    Hello,

    Somebody has the same program using Proton and Mplab XC8 ?

    Ricardo Urio
  5. Replies
    15
    Views
    269

    Re: Changing EDA software

    Hi Tim,

    Not only opto sensor, but the same multiplexer as well. I went to the door to see if you was behind it :-) I used 0201 resistors, as I placed 1 more resistor to limit current from...
  6. Replies
    15
    Views
    269

    Re: Changing EDA software

    Tim,

    Maybe we are doing the same thing. My project is a level sensor with 112 phototransistors PT19

    3660
  7. Replies
    17
    Views
    1,554

    Re: VL53L0X laser-ranging sensor

    From the VL53L0X datasheet :
    3659
  8. Replies
    15
    Views
    269

    Re: Changing EDA software

    Hello Tim,

    If you need it only for this board, maybe I can help you, I use Proteus Platinum version. No problem to pull some tracks.

    Ricardo Urio
  9. Replies
    17
    Views
    1,554

    Re: VL53L0X laser-ranging sensor

    Hi John,

    I did some tests with VL53L0X, fixed 12 cm from a light blue surface and protected from external light, and it had an instability of 6% at the measurement.

    Ricardo Urio
  10. Replies
    48
    Views
    5,247

    Re: mcp41*** Microchip Digital Pot

    It's important to make some calibration when using digital potentiometers. I currently use 5x four channel MCP4728 in a project, and it's essential to correct the offset and gain of EACH channel. To...
  11. Re: Preview of updated Proton Compiler Manual

    Hello Les,

    It's great ! I can imagine the work to do all alone ! A continuous inovating compiler and it's updated manual is not a easy task, need a lot of work. Particularly, I hate to do...
  12. Replies
    13
    Views
    191

    Re: Cheap programmer or waste of money

    John, did you find that option in IPE v5.10 ?

    Ricardo Urio
  13. Replies
    19
    Views
    239

    Re: Diffuser IR Leds (how)

    Hi Tim,

    I have the same challenge here. Need to measure oil in a 35 cm height glass tube, with same resolution than you. I tried with laser sensor VL53L0X, but it isn't stable enough. I used...
  14. Replies
    17
    Views
    334

    Re: P24 (using Procedures) for 18F Pics??

    Hello Les,

    How we can contribute to continues the development ? Maybe an annual payment ? Make a proposal and I think we can bring some developers together and justify your work.
    ...
  15. Replies
    25
    Views
    280

    Re: Delphi or Visual Studio etc. ?

    Hello Craig,

    The best program is the one you know well :D I use Delphi since 1998 and I guess the only limitation is my knowledge. My applications are 99% hardware + software , and...
  16. Replies
    22
    Views
    789

    [SOLVED !] Re: Hx711 calibration

    Hello,

    It's a very basic question, and you will need to make some research. A initial way is to create a routine where you read 12 times the adc value, recording the sum of all values and...
  17. Replies
    22
    Views
    789

    [SOLVED !] Re: Hx711 calibration

    Hello,

    No calibration is almost impossible, load cells works with very low signals so it's important to gage it. I suggest that you create a calibration routine, that you record no load...
  18. Replies
    17
    Views
    367

    Re: Sub-EndSub and Gosub-Return

    Hi Les,

    8 bit will still be using as it's very easy to find around the world. I can create a board to insert into a connector, using a cheap 8 pin SOIC 8 bit, and there isn't 16 bit...
  19. Replies
    17
    Views
    367

    Sub-EndSub and Gosub-Return

    Hello,

    What's the difference between Sub-EndSub and Gosub-Return ?

    Ricardo Urio
  20. Replies
    6
    Views
    233

    Re: Question for Delphi programmers

    Hi John,

    I will make some research to try to help you. I never used DLL, but it will be interesting to me as Delphi programmer.

    Ricardo Urio
  21. Replies
    7
    Views
    240

    Re: Moved to say thanks to Les

    Les,

    When you want, come to Brazil to take a beer. You don't need hotel ! Thank you very much !

    Ricardo Urio
  22. Replies
    2
    Views
    194

    Re: Sorry for my absence

    HI Les,

    Good to know that you are fine now and about these compiler news too.

    Ricardo Urio
  23. Re: Getting old, need help on suitability ttl vers RS232

    As example, I currently use RS485 with MODBUS/RTU protocol. MODBUS always answer with a confirmation of values wrote or the read value. These are the main features :

    * See attached picture
    Slave...
  24. Re: Getting old, need help on suitability ttl vers RS232

    Hi Tim,

    I agree with John's procedure, cable quality is the main factor. As a not differential communication, RS232 will be more susceptible to interferences, so a good cable and a good...
  25. Replies
    16
    Views
    467

    Re: Help Wanted !

    Hi Les,

    As I'm overwhelmed at work, I have not so much time available, but if more people come together, we can divide the work at small pieces. Count with me.

    Regards

    Ricardo Urio
  26. Re: Invisible RS232 Serial Buffering code of Les and RS485

    Hi Joe,

    You will need MAX485 and some pieces more, because normally, RS485 works half duplex, and you will need to set a direction pin. Usually, I don't build my RS232-RS485 converters,...
  27. Replies
    0
    Views
    169

    Anomalies at v3.76 Beta

    Hi, I identified these anomalies :

    FineLineIDE didn't recognize some characters and change it by a lot of strange characters, so the compiler does not accept so long line, even as comment.
    ...
  28. Replies
    44
    Views
    3,619

    Re: A Universal PIC18 Bootloader for PDS

    Great to read that Alberto, it will be usefull !

    Ricardo Urio
  29. Replies
    3
    Views
    127

    Re: Line continuation

    Hi John,

    The way that I found was using Select...Endselect with only one CASE:


    Select Lista_Parametros[parTipo_Atuador]

    Case...
  30. Replies
    3
    Views
    127

    Line continuation

    Hello, is there a way to split an IF...ENDIF statement with multiple OR/AND in some lines ?

    Ricardo Urio
  31. Thread: I2C bus 2

    by ricardourio
    Replies
    10
    Views
    240

    Re: Proton I2C libraries for MSSP1 and MSSP2 peripherals

    Hi Les,

    Very good, I will use it soon.

    Ricardo Urio
  32. Thread: I2C bus 2

    by ricardourio
    Replies
    10
    Views
    240

    Re: I2C bus 2

    Hi Shantanu,

    You are right and both safety systems were implemented. Software has a current limit for each pressure range and a mechanic security valve opens around 2150 BAR (my working...
  33. Re: Selecting variable bit using another variable

    :nightmare: God ! Sorry for that, I really didn't remember of this important improvement.

    Ricardo Urio
  34. Selecting variable bit using another variable

    Hello Les,

    I guess it was pointed before, but the possibility to uses variable to select another variable bit is usefull, like this :

    Dim Output as word
    DIm I as byte

    For I = 0 To 15 ...
  35. Thread: I2C bus 2

    by ricardourio
    Replies
    10
    Views
    240

    Re: I2C bus 2

    Hi Shantanu,

    As example, my circuit uses MSSP1 to communicate between 3 microcontrollers and 4 DAC. One microcontroller is responsible by a critical high pressure closed loop control, so it...
  36. Replies
    4
    Views
    88

    Re: Been a while!

    Hi Simon, as John said, Proton is doing better and better. Les is working a lot to give us nice improvements.

    Ricardo Urio
  37. Thread: I2C bus 2

    by ricardourio
    Replies
    10
    Views
    240

    Re: I2C bus 2

    As well, with time critical firmwares, we can't use MSSP2 interrupts using I2COut.

    Ricardo Urio
  38. Thread: I2C bus 2

    by ricardourio
    Replies
    10
    Views
    240

    I2C bus 2

    Hi Les, I working with PIC18F26K22 and it brought the necessity to use second I2C bus commands, like HBStart2, Hbusout2....

    Ricardo Urio
  39. Re: A plea for some enhancements to the Proc command

    Hi JohnB,

    My main concern with 16 bit devices is the interface with 0-5V sensors that I use a lot and can be read directly with an 8 bit device. Using a resistor divider would introduce...
  40. Re: New Project _ Source Meter and measuring small currents

    Simon, take a look at INA225

    Ricardo Urio
  41. Thread: xray

    by ricardourio
    Replies
    6
    Views
    635

    Re: xray

    I think the better way to measure a frequency is using capture or measuring time between two pulses. Counting pulses into a second can give you a lot of imprecise values. Share your Proteus + code...
  42. Replies
    16
    Views
    1,072

    Re: Best programmer for new PICs

    I use Pickit 3, because of compatibility, NOT BECAUSE OF QUALITY . It has some bugs and I have unsuccessful programs many times, but it's ever updated and cheap.

    Ricardo Urio
  43. Re: Power switching through p-channel MOSFET

    Hi Shantanu,

    Relays are not a good choice for consumption sensitive applications. When I worked with a similar project, I used XP series Pics and managed the power "waking" processor only...
  44. Replies
    17
    Views
    1,353

    Re: Waiting for ACK on I2c bus

    Hi John,

    Good to see that your project worked ! As well, to confirm that we can't trust in simulations all time.:encouragement:

    Ricardo Urio
  45. Replies
    17
    Views
    1,353

    Re: Waiting for ACK on I2c bus

    Hi John,

    The interface frequency is correct ? I tried at simulation and it worked, SSP1CON2.6 was set when MCP23017 wasn't present. If communication was established, it still clear. Of...
  46. Replies
    11
    Views
    843

    Re: Waveform generator

    barak and Les, thank you very much, both solutions seems to be good. I will test the two ways. Les, about your propose, do think a single filter can handle all 3 frequencies generated by DAC ?
    ...
  47. Replies
    11
    Views
    843

    Re: Waveform generator

    Hi barak,

    Are that screen shot from your DDS tonegen example ? I need a very good sinewave because is the more precise method to measure an inductance that I tried. To do it, I need to...
  48. Replies
    11
    Views
    843

    Re: Waveform generator

    Hi barak,

    According AN1523, NCO has less harmonics than look-up tabel method. I will test both.

    Thanks

    Ricardo Urio
  49. Replies
    17
    Views
    1,353

    Re: Waiting for ACK on I2c bus

    Hi John, really, this method only will works with pullup resistors connected.

    Ricardo
  50. Replies
    11
    Views
    843

    Re: Waveform generator

    Hi Stephen,

    My goal is to make a precision inductance meter, to do it is necessary a pure sine wave at 100Hz/1Khz/10Khz. I took a look at PIC DCO and DDS, and now, as in your suggested...
  51. Replies
    11
    Views
    843

    Waveform generator

    Hello friends,

    Currently I'm using an ICL8038 to generate 100Hz / 1Khz / 10Khz, 50% duty, -2V to + 2V, sine waveform. But it's necessary many adjusts to achieve these properties. I think...
  52. Replies
    17
    Views
    1,353

    Re: Waiting for ACK on I2c bus

    Hi John,

    I2C is awesome but ever a bit confuse, because there are significant differences between devices protocols. I'm not a specialist, but I'm using I2C a lot in my projects, so, if I...
  53. Replies
    0
    Views
    281

    I2C values mismatch

    Hi friends, just a curiosity, but can brings some problems, so I want to share. I have an I2C communication between 2 PIC. The slave has a set of Parameters with respective values. Both parameters...
  54. Replies
    17
    Views
    1,353

    Re: Waiting for ACK on I2c bus

    Hello John,

    As ACK answer is at 9th bit, you has a prompt answer, you can try to send the HBusout some few times, within small intervals(ex:50 ms), if NACK, checking at SSPxCON2.ACKSTAT,...
  55. Replies
    11
    Views
    1,456

    Re: CCP2 and RB3 pin problem with PIC18F25K50

    I use Proteus + Proton 95% of my working time, and I agree with Les that there are some faults with simulation, but for me, it's an amazing tool that same a lot of time to me. I just assumed that if...
  56. Replies
    23
    Views
    1,699

    Re: Runtime symbol or variable assignment

    Les, maybe the time is not a problem because if the application is so time critical, we can give up this command and uses another way to achieve the goal, but turns the pin an input for a time can...
  57. Replies
    23
    Views
    1,699

    Re: Runtime symbol or variable assignment

    Hi Les,

    It will be a great improvement ! Very nice you see that will be useful for many other Proton users.

    Ricardo Urio
  58. Replies
    23
    Views
    1,699

    Re: Runtime symbol or variable assignment

    Hi Stephen, It's not possible to use a variable as pin number to a port. Anyway, I need to load port and pin to a variable, because the output port changes with specific procedures.
  59. Replies
    23
    Views
    1,699

    Re: Runtime symbol or variable assignment

    Barak, I just sent a small example. My main code has around 150 coding lines for each 36 possibilities. If I can assign a port and pin to a variable, I will can do it using around 150 x 6
  60. Replies
    23
    Views
    1,699

    Re: Runtime symbol or variable assignment

    Hi Alberto, is not possible to use in this way, because compiler don't recognize the VirtualPORT.x as a port.
  61. Replies
    23
    Views
    1,699

    Re: Runtime symbol or variable assignment

    Hi John and Barak, sorry for didn't mention it, but I need to set it individually, your both solutions set all port pins at time, and it is a problem if I have a pin set previously. Maybe this...
  62. Replies
    23
    Views
    1,699

    Re: Runtime symbol or variable assignment

    Hi Les,

    I will use Pin_output only to set High or Low, but I need to change which Port pin is assigned to the Pin_Output identifier dynamically. My example at first post is only a very...
  63. Replies
    11
    Views
    1,456

    Re: CCP2 and RB3 pin problem with PIC18F25K50

    Hi Hemsys,

    Your code works fine here, simulating with Proteus. Pulsing pin PORTB.3, PORTB.5 and PIR2.0 toggles. May be a problem with your simulation, test it with a real hardware....
  64. Replies
    23
    Views
    1,699

    Re: Runtime symbol or variable assignment

    Hello friends,

    Simon, unfortunately your code didn't works. Stephen, I trying to dynamically change which Port pin is assigned to the "Pin_Output" identifier, but is not possible to use...
  65. Replies
    23
    Views
    1,699

    Runtime symbol or variable assignment

    Hi,

    I need to do something like this :

    Select POSITION
    Case 1
    Pin_Output = porta.0
    Case 2
    Pin_Output = porta.1
    Case 3
  66. Replies
    53
    Views
    3,381

    Re: A new Stats collector plugin

    Hello John,

    There is an error when I try to download the new version. I'm logged in but received the message "you do not have permission to access this page"

    Ricardo Urio
  67. Replies
    9
    Views
    2,192

    Re: Finding unused variables

    [QUOTE=joesaliba;501295]Yes it is within the pre compiler. Goto Library Manager > PreCompiler Setup and check "Report Unused Variables".

    Hello Joseph, sorry for so basic question, but, where I...
  68. Replies
    1
    Views
    447

    HRSout Even or Odd at execution time

    Hello,

    Is there a way to change parity mode at execution time when using Hrsout ?

    Ricardo Urio
  69. Replies
    7
    Views
    1,850

    [SOLVED !] Re: MODBUS RTU communication

    Hello Mahmood,

    What is the content of your byte array ? Did you make the CRC calculation ?

    Ricardo Urio
  70. Re: 33EP512MU810 tripple MCU project Update + + How to reset / clear PWM Timer PMTMR

    Hello Matty,

    From DS70645 :
    "...The SYNCPOL bit (PTCON<9>) selects the rising or falling edge of the synchronization pulse, which resets the timer (PMTMR)."

    and also :

    "The...
  71. Re: Very High speed coms between Master Pic- Slave pic (needed)

    Tim,

    Not a easy task to do using ADs, it's slow. Take a look at PIC16F1615 :

    > 14 PIN
    > 32 MHZ internal osc
    > 02 comparators with programable reference to allow the self calibration
    >...
  72. Re: Very High speed coms between Master Pic- Slave pic (needed)

    Tim,

    I don't know exactly the case, but I guess my way to do it would be to use a comparator with optos and then something like this :

    While Pin1 = 1 :wend 'Position 1
    Timer = 1
    While...
  73. Re: Very High speed coms between Master Pic- Slave pic (needed)

    Hi Tim,

    What's the interval between bubbles ?

    Ricardo Urio
  74. Replies
    10
    Views
    2,027

    Re: ADC converter 16F626

    Hello, I didn't find PIC16F626 to try to help you. Can you correct the model ?

    Ricardo Urio
  75. Replies
    7
    Views
    1,502

    Re: Highbyte and Lowbyte with word array

    Hi Tim, for now, the better way is to use a temporary variable.

    Thanks

    Ricardo Urio
  76. Replies
    7
    Views
    1,502

    Highbyte and Lowbyte with word array

    Hello,

    I unsucessfully tried to use modifiers lowbyte and highbyte with my word array. For now, the solution was to create a word variable to each value of my 300 word array, but of course...
  77. Replies
    4
    Views
    1,117

    Re: Proton 3.5.8.3 has disappeared

    I usually look at FILES, using the button in the top main menu (http://www.protonbasic.co.uk/vbdownloads.php) . The 3.5.8.3 will be find at "PDS Support Files", posted 13th April, but I don't know...
  78. Replies
    4
    Views
    1,117

    Re: Proton 3.5.8.3 has disappeared

    Check here :

    http://www.protonbasic.co.uk/showthread.php/75451-Microchip-AN1310-BootLoader

    Ricardo Urio
  79. Replies
    14
    Views
    3,056

    Re: Microchip AN1310 - BootLoader

    Les, I see the Declare Bootloader is On by default, can it brings some problem with programs that don't use Bootloader ?

    Ricardo Urio
  80. Replies
    14
    Views
    3,056

    Re: Microchip AN1310 - BootLoader

    All solved now. It's need to pay attention to where Bootloader will write. With my program was necessary to select "FLASH Program Memory" and "EEPROM" in the "Write Options" of Microchip AN1310,...
  81. Replies
    14
    Views
    3,056

    Re: Microchip AN1310 - BootLoader

    Amazing support Les ! Thank you ! Now the Microchip AN1310 Bootloader works fine, but my program is not working if written with bootloader. Is there something else to alter in my software ?
    ...
  82. Replies
    6
    Views
    1,264

    Re: Goto at first address

    Thank you Les, it's solved.

    Ricardo Urio
  83. Replies
    14
    Views
    3,056

    Re: Microchip AN1310 - BootLoader

    Well, it seems not a simple thing to me and friends from here. Les, maybe a new bootloader or a way to create our own bootloader files can be usefull. A option allow Proton compiled files to be used...
  84. Replies
    6
    Views
    1,264

    Re: Goto at first address

    Thank you guys, but it still not working. SOme suggestion about Bootloader for PIC18F87K22 ?

    Ricardo Urio
  85. Replies
    6
    Views
    1,264

    Goto at first address

    How I create a GOTO as the first instruction at address 0 ?

    Ricardo Urio
  86. Replies
    14
    Views
    3,056

    Re: Microchip AN1310 - BootLoader

    Some good soul to help me ?

    Ricardo Urio
  87. Re: PIC18F25K80 ADC goes backward when over 50%

    I guess is something with code generation, and I have no knowledge to check assembly code. Maybe Les can help us. The turnaround is to make your USART routine.

    Ricardo Urio
  88. Re: PIC18F25K80 ADC goes backward when over 50%

    Iīm using PIC18F25K80

    Ricardo Urio
  89. Re: PIC18F25K80 ADC goes backward when over 50%

    In my simulation, the problem is with HRSout command. In the memory, TempW value is correct, but erroneous sent by HRsout. I made a test loading TXREG1 with TempW it was correctly transmitted.
    ...
  90. Re: PIC18F25K80 ADC goes backward when over 50%

    I have this part here, feel free to send some code if you want.

    Ricardo Urio
  91. Re: PIC18F25K80 ADC goes backward when over 50%

    Do you have Proteus ? If not, I can simulate your code here.

    Ricardo Urio
  92. Re: PIC18F25K80 ADC goes backward when over 50%

    How is the ADCON1 register ?

    Ricardo Urio
  93. Replies
    14
    Views
    3,056

    Re: Microchip AN1310 - BootLoader

    Contact was made, but a new issue. May you, friends, take a look at AN1310 - page 9 , about a necessary GOTO jump ? How would be the Proton code to do it ? I can tell you that the BootLoader program...
  94. Re: Microchip Bootloader GoTo 0 Instruction ?

    Hi, I'm with same issue, how to solve it ?

    Ricardo Urio
  95. Replies
    14
    Views
    3,056

    Re: Microchip AN1310 - BootLoader

    Now it compiled. Let's go to test it.

    Thanks

    Ricardo Urio
  96. Replies
    14
    Views
    3,056

    Re: Microchip AN1310 - BootLoader

    Hi John, the problem is where to configure the fuses and include it in the main program. I'm using MPLAB X IDE v3.25, I found the Configurations Bits and set all necessary fuses, after it I click in...
  97. Replies
    14
    Views
    3,056

    Microchip AN1310 - BootLoader

    Hi guys, somebody can help me to make a bootloader to PIC18F87K22 using Microchip AN1310 ? I have no experience with MPLAB to generate it.

    Thanks

    Ricardo Urio
  98. Replies
    9
    Views
    1,954

    Re: Timer1 corrupts GLCD

    Harm, the problem is the PORTC.0 and PORTC.1. See :

    "When the Timer1 oscillator is enabled (T1OSCEN is set), the RC1/T1OSI and RC0/T1OSO/T1CKI pins become inputs. That is, the TRISC<1:0> value is...
  99. Replies
    9
    Views
    1,954

    Re: Timer1 corrupts GLCD

    Harm, which pins are you using for GLCD ?

    Ricardo
  100. Replies
    2
    Views
    1,033

    Re: Checking individual bits

    Solved, thank you Charlie.

    Ricardo Urio
  101. Replies
    2
    Views
    1,033

    Checking individual bits

    Hi, is there a way to check individual bits of a word, using a variable as index ? I tried it, and didn't works :

    For Y = 0 To 15
    If Habilita_Testes.Y = 1 Then
    Inc X
    ...
  102. Replies
    12
    Views
    4,595

    Re: PIC18F67K22 oscillator issue

    I still having problems editing and saving my posts. The correct for previous post is OSCCON(2:0) = 0Ricardo Urio
  103. Replies
    12
    Views
    4,595

    Re: PIC18F67K22 oscillator issue SOLVED

    I found the problem, not so logical for me. To use internal clock with PLL, it's necessary OSCCON = 0, then the primary clock is determined by configuration bits. Ricardo Urio
  104. Replies
    12
    Views
    4,595

    Re: PIC18F67K22 oscillator issue

    Hi Stephen, about your recommendations :"You would try OSCTUNE = $40..."I tried and still working wrongly"Check that you have the industrial.."Yes, I using PIC18F67K22-I/PTThanks Stephen by your...
  105. Replies
    12
    Views
    4,595

    Re: PIC18F67K22 oscillator issue

    Hello hadv125, I agree that symbols are more understandable, but it needs a lot more work to create it for large codes.Ricardo Urio
  106. Replies
    12
    Views
    4,595

    Re: PIC18F67K22 oscillator issue

    I set OSCTUNE.6 = 1, you can see in my code, that Les reformatted.Ricardo Urio
  107. Replies
    12
    Views
    4,595

    Re: PIC18F67K22 oscillator issue

    Thanks Les, some idea about the oscillator issue ?Ricardo Urio
  108. Replies
    12
    Views
    4,595

    Re: PIC18F67K22 oscillator issue

    Sorry, buttons from "Edit Post" page aren't working here. And I don't remember how to place a code here.Ricardo Urio
  109. Replies
    12
    Views
    4,595

    PIC18F67K22 oscillator issue

    Hello, the code below simulate fine, but in a real device, works like PLL off.Device = 18F67K22Config_Start RETEN = OFF ;Disabled - Controlled by SRETEN bit INTOSCSEL = High ;LF-INTOSC in...
  110. [SOLVED !] Re: How to read serial data from a low cost digital caliper.

    Which PIC model exactly are you using ? Which pins for communication ? What's the current necessary for the caliper ?

    Ricardo Urio
  111. [SOLVED !] Re: How to read serial data from a low cost digital caliper.

    I have a project using it, and I applied a LM317 to regulate 1.5V, and a AOP as comparator to translate levels.

    Ricardo Urio
  112. Replies
    3
    Views
    854

    Re: Array Length

    Bob, Len() works in the same way for Strings and Byte arrays. The result is equal if I declare Msg variable as String. SimonJA, LEN() only returns how many positions are not null, until find a null...
  113. Replies
    3
    Views
    854

    Array Length

    Hi I need to get the Length of an array, but the LEN() function don't return the correct value.


    Dim Msg[20] As Byte

    Clear

    Msg[0] = $3
    Msg[1] = $6
    Msg[2] = $2
  114. Replies
    0
    Views
    1,344

    GLCD font converter

    Hello, I'm using Font Converter 1.21 and PPrint, but Font Converter don't convert all caracters that I need, like 228 and 244. Is there another tool do convert fonts ? I saw GLCD Font Creator, but...
  115. Replies
    89
    Views
    31,441

    Re: Print big font for toshiba GLCD 6x8 format

    And is there someone to Samsung GLCD ?

    Ricardo Urio
  116. Thread: Hbusout2

    by ricardourio
    Replies
    3
    Views
    2,733

    Re: Hbusout2

    Well, I just received some 24AA512 and the firmware worked fine. I believe that this issue is in the simulation software. I'll ask it there.

    Ricardo Urio
  117. Replies
    1
    Views
    944

    Backup file

    My PC froze while compiling, and I lost the firmware. Is there a automatic backup of compiled files, or a way repair it ?

    Ricardo Urio
  118. Thread: Hbusout2

    by ricardourio
    Replies
    3
    Views
    2,733

    Re: Hbusout2

    I need help to solve a problem with I2C port 2 of a PIC18F67K22. In the link below, I created a simulation for Proteus 8.1, using PIC18F46K22 and PIC18F67K22, with same firmware, changing only the...
  119. Thread: Hbusout2

    by ricardourio
    Replies
    3
    Views
    2,733

    Hbusout2

    Hello Proton team, have you intention to add Hbusout2 in the compiler ?

    Ricardo Urio
  120. Replies
    1
    Views
    728

    Results version number

    Hi, is there a way to use the results version number, generated by Proton, into my code ? As example, showing it in a display.

    Ricardo Urio
  121. Replies
    4
    Views
    2,096

    Procedures with Proton

    Is there some plan to include procedures in the Proton, like Proton24 ?

    Ricardo Urio
  122. Replies
    0
    Views
    1,110

    Control of multiple I2C

    Hi, how I can read and write the second I2C channel from a PIC18F46K22 ?

    Ricardo Urio
  123. Replies
    3
    Views
    1,429

    [SOLVED !] Re: Linearizing a sensor output.

    Hi David, I donīt know if I understood correctly, but you will use only one time the CWrite to put the table into program memory, so, there will not be multiple CWrites. I used a software callled...
  124. Replies
    3
    Views
    1,829

    Re: Pic18f67k22 rtcc

    Paul, Now I see that Proton recognize ALRMVALH and ALRMVALL, and ALRMDAY, ALRMMIN, ETC... arenīt accessible. I really donīt understand how these register works, somebody understand it ?

    Ricardo...
  125. Replies
    3
    Views
    1,829

    Re: Pic18f67k22 rtcc

    Hi Paul, the compiler donīt recognize the RTCC registers. I just tried to compile it.

    Ricardo Urio
  126. Replies
    3
    Views
    1,829

    Pic18f67k22 rtcc

    How I can control RTCC registers of PIC18F67K22 ? The registers names donīt turns to green when writing in the IDE.

    Ricardo Urio
    IDE 2.0.1.2
    Compiler 3.5.5.5
    MPLAB X IDE v1.60
  127. Replies
    13
    Views
    10,010

    Re: MOSFET Switching - PWM

    It will help if you send a schematic.

    Ricardo Urio
  128. Replies
    5
    Views
    2,913

    Re: Issues with PIC18F87K22

    Hi Joe, I simulated the following code and it works fine. Try to burn it in the PIC, maybe there will be some issue with oscillator settings :


    Device = 18F87K22


    Declare Create_Coff true

    ...
  129. Replies
    5
    Views
    1,953

    Re: Floating point COFF standard

    Perfect David, issue solved :-)

    Thanks

    Ricardo Urio
  130. Replies
    5
    Views
    1,953

    Re: Floating point COFF standard

    Hi ROSHAN, I think only Les can help us.

    Ricardo Urio
  131. Replies
    5
    Views
    2,913

    Re: Issues with PIC18F87K22

    Hi Joe, I use the PIC18F67K22, that is from same family. My program uses 10680 bytes (8,15%) and 390 variables (10,10%) without problems. Do you use the PROTON to simulate it ?

    Ricardo Urio
  132. Replies
    5
    Views
    1,953

    Re: Floating point COFF standard

    Somebody else has this problem ?
  133. Replies
    5
    Views
    1,953

    Floating point COFF standard

    When simulating some COFF file in the PROTEUS, I canīt see the floating points variables values. Reading a similar issue in the PROTEUS forum, I found it :
    "Float types need to be specified manually...
  134. Replies
    2
    Views
    2,107

    Re: No success with HRSOUT2 in PIC18F67K22

    Hello pinko, you are right, Hserial2* declares and HRsout2 donīt work with PIC18F67K22.Setting bits manually the program ran.
  135. Replies
    2
    Views
    2,107

    No success with HRSOUT2 in PIC18F67K22

    Hello friends, I canīt make the EUSART2 of a PIC18F67K22 work properly. You can try the code below, TX1 works fine, and processor freezes when transmit by TX2


    Xtal 40

    TRISC.6 = 0
    TRISG.1...
  136. Replies
    0
    Views
    1,140

    Multiple hardware I2C

    Hi, how I can read and write the second I2C channel from a PIC18F46K22 ?

    Ricardo Urio
  137. Replies
    1
    Views
    1,288

    Happy birthday Les !

    Hi Les, happy birthday and wishes of happiness and health to you. Continues with your great work but take a break for fishing sometimes.:)

    Ricardo Urio
  138. Replies
    1
    Views
    854

    Variable consistence verification

    I think it will be fine if compiler test if a variable is correct assign in some functions, like :

    Dim I as byte

    For I = 1 to 500
    **Do something...
    next

    Ricardo Urio
  139. Replies
    1
    Views
    1,219

    Re: ID Locations

    Solved. I can use Cread to do it, but PROTEUS donīt simulate it.

    Ricardo Urio
  140. Replies
    1
    Views
    1,219

    ID Locations

    Can I read ID locations of a PIC18F6722 using the CRead or other instruction? As is in the the datasheet: "Eight memory locations (200000h-200007h) are designated as ID locations, where the user can...
  141. Replies
    10
    Views
    5,717

    [SOLVED !] Re: Graphic LCD Display not working

    Some good result working with GLCD using SED1335 ?

    Ricardo Urio
  142. Replies
    2
    Views
    3,444

    PIC18F87K22 simulation

    Please, who has interested in PIC18F87K22 family simulation at Labecenter Proteus, put your vote here http://support.labcenter.co.uk/forums/viewtopic.php?f=10&t=3642

    Ricardo Urio
  143. Replies
    6
    Views
    2,296

    Re: Reading bit from a variable

    Getbit works fine ! Thank you Tim.

    Ricardo Urio
  144. Replies
    6
    Views
    2,296

    Re: Reading bit from a variable

    Hi Rick, the intention is to use the variable I value to determinate the bit to read from MYVAR, so I read MYVAR.0, MYVAR.1, ... sequentially.

    Ricardo Urio
  145. Replies
    6
    Views
    2,296

    Reading bit from a variable

    I tried to use this code, but does not work, maybe is usefull in next versions :

    '********************
    Dim X as byte
    DIm MyVar as word
    Dim OutPin as Portb.4

    For X = 0 to 11
    if MyVar.I =...
  146. Replies
    8
    Views
    3,734

    Re: Pic12f675 id

    Thank you Shantanu, it works !

    Ricardo Urio
  147. Replies
    8
    Views
    3,734

    Pic12f675 id

    How I can write to ID locations (2000h-2003h) of PIC12F75 ?
  148. Replies
    142
    Views
    37,127

    Re: Invisible RS232 Serial Buffering code

    Fantastic ! Whatīs the simulator ? The software provide a serial interface to it ?
  149. Thread: PDS + MiWi

    by ricardourio
    Replies
    1
    Views
    1,333

    PDS + MiWi

    Somebody uses MiWi with PDS ? Any chance to translate MiWi protocol to PDS ? I think it is a powerfull feature to the PDS !
  150. Replies
    5
    Views
    2,134

    Datasheet shows 100K erase/write cycle. But still...

    Datasheet shows 100K erase/write cycle. But still is a problem.
  151. Replies
    2
    Views
    1,280

    Inverted value for a boolean variable.

    How I can make it :
    *A,B = bit

    A = B(inverted)
    or
    PORTA.0 = PORTA.1(INVERTED)
  152. Replies
    11
    Views
    2,523

    Thanks for all. I understood the solution, but I...

    Thanks for all. I understood the solution, but I think everybody concerns with me about it is not a very good solution when you will use it with a important product with a large code. I will make...
  153. Replies
    11
    Views
    2,523

    And about RS232 ?

    And about RS232 ?
  154. Replies
    11
    Views
    2,523

    1 mhz clock

    Is there some way to use 1 MHZ internal clock ?
  155. Replies
    3
    Views
    1,599

    Thanks my friend, I will test it in weekend.

    Thanks my friend, I will test it in weekend.
  156. Replies
    3
    Views
    1,599

    String within a string

    How I can find a string within a string, or if a string contains other string and it position ?
  157. Replies
    6
    Views
    2,226

    The problem occurs with any program that I make...

    The problem occurs with any program that I make and with Proton examples, but not every time. Sometimes I compile 10 times without problems. I'm using Proton IDE 1.0.6.4 and Compiler 3.3.4.8. With my...
  158. Replies
    6
    Views
    2,226

    Proton freezing

    Sometimes at day, my Proton freeze when I try to compile something. The "Scanning" task is the problem. Then I need to End this task and "PrPlus.exe".

    Ricardo Urio
  159. Thread: RPM Maths

    by ricardourio
    Replies
    28
    Views
    5,459

    [SOLVED !] Perides, the problem is that the command...

    Perides, the problem is that the command "counter", counts how many pulses are in a given time, and not the frequency. Then from 800 RPM up to approximately 980 RPM you have 4 pulses at 100ms (3...
  160. Thread: RPM Maths

    by ricardourio
    Replies
    28
    Views
    5,459

    [SOLVED !] Rverm, probably, more injectors is for turbo...

    Rverm, probably, more injectors is for turbo engines using ethanol. Some time ago I did a few circuits for this purpose.
  161. Thread: RPM Maths

    by ricardourio
    Replies
    28
    Views
    5,459

    [SOLVED !] Mauro, the best way is to measure the time...

    Mauro, the best way is to measure the time between each interruption caused by the rotation sensor. As a colleague said,if you have more pulses per revolution, the system will be more accurate.
    ...
  162. Thread: Usb Cdc

    by ricardourio
    Replies
    8
    Views
    3,159

    Dan, the problems is partially solved. I was...

    Dan, the problems is partially solved. I was trying to simulate with Proteus, but only the Proton code based on CDC donīt work. CCS and Microchip examples works fine. Now I bought a 18F4550 and the...
  163. Thread: Usb Cdc

    by ricardourio
    Replies
    8
    Views
    3,159

    Thanks Dan, I using Windows XP. Ricardo Urio

    Thanks Dan, I using Windows XP.

    Ricardo Urio
  164. Thread: Usb Cdc

    by ricardourio
    Replies
    8
    Views
    3,159

    Maybe somebody have some functional code using...

    Maybe somebody have some functional code using USB CDC with Proton.

    Thanks

    Ricardo Urio
  165. Thread: Usb Cdc

    by ricardourio
    Replies
    8
    Views
    3,159

    Usb Cdc

    Is there some 'official' cdcdesc.inf file working ? The examples using this file don't work for me. I tried with Alan R. file too. Maybe a Microchip file...

    Ricardo Urio
  166. Replies
    3
    Views
    1,703

    The messages goes directly to your brain ?! :-) ...

    The messages goes directly to your brain ?! :-) Do you know a method to transfer data from ram to rom in runtime ?
  167. Replies
    3
    Views
    1,703

    Ldata + Array

    How I can use a word array like variable of LDATA command ? ex :

    'It compile but isn't work

    Dim Myarray[3] as word
    Dim Var[3] as word

    Myarray[0] = 1
    Myarray[1] = 2
    Myarray[2] = 3
  168. Thread: Word array

    by ricardourio
    Replies
    6
    Views
    2,065

    thanks Tim and cgriffin. I divided my table, now...

    thanks Tim and cgriffin. I divided my table, now I a have 6 x 78 table, it's better, and send a 13 word array at time. Ex :

    'Transmiter
    RSOut "U1A",UI[0], UI[1], UI[2], UI[3], UI[4], UI[5],...
  169. Thread: Word array

    by ricardourio
    Replies
    6
    Views
    2,065

    Thanks Tim, really it's works and I'm using, but...

    Thanks Tim, really it's works and I'm using, but to transfer many data tables isn't the excellent way. If there isn't a better way, then maybe will be a good add to the compiler.
  170. Thread: Word array

    by ricardourio
    Replies
    6
    Views
    2,065

    Word array

    How I can send and receive a word array using Rsout and Rsin ?

    Ricardo Urio
  171. Exactly cgriffin. Only to complete, where I wrote...

    Exactly cgriffin. Only to complete, where I wrote "Tool to add new PICs or convert MPLAB PIC" is "Tool to add new PICs or convert MPLAB PIC definition/compilation files"
  172. Flowchart Visual PIC initializer Tool to add...

    Flowchart
    Visual PIC initializer
    Tool to add new PICs or convert MPLAB PIC
    ToDo list
    Code completion
  173. Replies
    0
    Views
    1,220

    Adding 18F1330

    Somebody have the files to compile to 18F1330 or can help me to create the necessary files ?
  174. Thread: Pic Id

    by ricardourio
    Replies
    6
    Views
    2,252

    It works fine to program PIC ID, thanks. Know, my...

    It works fine to program PIC ID, thanks. Know, my problem is to read it using Proton :-) CREAD 200000 didn't return the ID number.
  175. Thread: Pic Id

    by ricardourio
    Replies
    6
    Views
    2,252

    Thanks Bruce, do you know how I can use or modify...

    Thanks Bruce, do you know how I can use or modify the .LPB file to use within Proton. With Mpasm example i need to include the .inc file.
  176. Thread: Pic Id

    by ricardourio
    Replies
    6
    Views
    2,252

    Pic Id

    How I can program the ID of a PIC, like 18F6720 using Proton ?
  177. Replies
    3
    Views
    1,522

    Thanks Nitro. The updates are very delayed,...

    Thanks Nitro. The updates are very delayed, perhaps the programmers are busy with other things.
  178. Replies
    3
    Views
    1,522

    How to add devices

    Hi all, how I can add new PICs to PROTON ?
  179. Replies
    0
    Views
    1,063

    Information about ADin with 16F690

    Using "ADin" command with 16F690 force the AN1 to be in VREF state.
Results 1 to 179 of 179