Search Results - Proton BASIC community web site


Search:

Type: Posts; User: Jezsmith

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: dword Aliases

    by Jezsmith
    Replies
    4
    Views
    20

    Re: dword Aliases

    Les,
    Many thanks always appreciate your assistance. Top codin no G
    regards
    jez
  2. Thread: dword Aliases

    by Jezsmith
    Replies
    4
    Views
    20

    Re: dword Aliases

    OK,
    i can put a value in byte 0,1, and 3 but not 2

    Dim OUT_P_LSB As MSBCSB.Byte0 ' Alias unsigned Part1 to the low byte of Dwd
    Dim OUT_P_CSB As MSBCSB.Byte1 ' Alias unsigned Part2 to...
  3. Thread: dword Aliases

    by Jezsmith
    Replies
    4
    Views
    20

    dword Aliases

    HI,


    I am trying to read a pressure sensor which outputs a 24bit value and capturing it with Buisin and thus placing the recieved bytes in a DWORD



    Dim MSBCSB As Dword '...
  4. Replies
    7
    Views
    23

    [SOLVED !] Re: Anomaly for les

    maxim,
    have you tried using hardware USART:-
    HRSOut Str FLASH_DAT\5 instead of serout that compiles ok
    regards
    jez
  5. Replies
    20
    Views
    32

    Re: Pic resets after writing 27 files to SD

    cheers les
    proc AltiGPS()
    Everthing appears ok, It looks like my inapropriate use of str in that context. it logs wonderfully now, I will post the project when I have converted it all to the p24. ...
  6. Replies
    20
    Views
    32

    Re: Pic resets after writing 27 files to SD

    Craig,
    Hi, its a 128x64 eadog st7565
    regards
    jez
  7. Replies
    20
    Views
    32

    Re: Pic resets after writing 27 files to SD

    thanks guys,
    All I did to rectify was remove str modifier from the sd write routine from 'File_Write str tracklog' to File_Write tracklog.



    the track log is made by this routine which i wil...
  8. Replies
    20
    Views
    32

    Re: Pic resets after writing 27 files to SD

    just a quick update, the str modifier appears to have been the issue. I have ran it today until the battery ran out and it did not miss a beat
    regards
    jez
  9. Replies
    20
    Views
    32

    Re: Pic resets after writing 27 files to SD

    ok thanks guys,

    I have written a quick prog that just uses the SD files to write a number to an sd card. If one writes numbers, ie loop and increment the number each loop, its spot on, and...
  10. Replies
    20
    Views
    32

    Re: Pic resets after writing 27 files to SD

    thanks guys,
    I have ran the program for two hours without sd card in and it ran as designed an created 3465 tracks all perfect. I have removed all the subroutines and just got it to output and save...
  11. Replies
    20
    Views
    32

    Re: Pic resets after writing 27 files to SD

    arhh, i have spoke to soon, it now resets after 286 saves with a stack size of 500. i increased to 700 and it saved 344 before resetting. it must be something in the SD card routines that are filling...
  12. Replies
    20
    Views
    32

    Re: Pic resets after writing 27 files to SD

    nice one charlie
    That appears to have sorted it got to 275 no probs. just need to read up a bit, to understand why that should be the case
    regards
    jez

    just found the section in the manual and...
  13. Replies
    20
    Views
    32

    Pic resets after writing 27 files to SD

    HI,
    I am creating a GPS altimeter and using the sd file system on a 24FJ64GA002 to record track points. Bizarly the pic resets its self after 27 track writes. On the SD each track log is 2kb. Sufice...
  14. Thread: rsin issue

    by Jezsmith
    Replies
    1
    Views
    11

    Re: rsin issue

    OK,
    not sure why but
    used a string array instead of byte array ,,,Dim GPS_RXBUFF As String * 63,,, and bingo worked no error

    regards
    jez
  15. Thread: rsin issue

    by Jezsmith
    Replies
    1
    Views
    11

    rsin issue

    hi,
    just trying a conversion of my gps across to the 24FJ64GA002. I am trying to get everything into procedures etc and I have fallen at the first hurdle. my GPS data stream goes into port A.1. the...
  16. Re: using a gps to claculate distance and direction over small distances

    if you did not get sorted here is a routine for both 8 and 16 bit pics,
  17. Thread: ms5611

    by Jezsmith
    Replies
    1
    Views
    12

    ms5611

    joesaliba,

    here is the whole code
    hope this helps
    jez



    Device = 18LF13K50
    Declare Xtal = 8
  18. Re: New P-RTOS24 multitasking real time OS for Proton24

    johnb
    thanks not 100% sure what that means practicaly but its looks quick. I am working on the gps readings and printing to LCD in the system first, as a first step
    regrads
    jez
    .
  19. Re: New P-RTOS24 multitasking real time OS for Proton24

    Johnb,
    OK thanks may have a go and see how it goes. I will look at a the MPL3115 which does a lot of the work on chip and outputs a result every 250 - 500ms not sure how steady it will be.
    ...
  20. Re: New P-RTOS24 multitasking real time OS for Proton24

    Johnb,
    The sampling rate for the barametric sensor is 3ms but need multiple readings to average out the noise and get a smooth change, the GPS can be once per second not critical. I make the tones...
  21. Re: New P-RTOS24 multitasking real time OS for Proton24

    JohnB,
    Hi ,
    Interesting project which may solve a niggle I have had for a few years now. I have built a number of flight instruments which perform several tasks providing in flight information,...
  22. Replies
    14
    Views
    42

    Re: Anybody used SD Routines with P24?

    charlie
    Good O
    jez
  23. Replies
    14
    Views
    42

    Re: Anybody used SD Routines with P24?

    did you manage to get it working
    this is my gps code which may assist
    regards
    jez



    Device = 24FJ64GA002
    Declare Xtal = 16
  24. Replies
    0
    Views
    923

    PIC16f1825 and HPWM

    hi,
    When I compile I get an assembler error 113 symbol not previously defined (portb). the PIc chip does not have a portb. but in the assembler code it refs portb. this occurs when trying to use the...
  25. Replies
    1
    Views
    1,217

    Re: Averaging values from a non linear source

    Tim
    look up
    'Poiseuilles Equation' in physics and fluid dynamics it resolves the volumetric flow rate of a liquid based on pipe diameter, viscosity ,temp and pressure.Also look at Bernoulli...
  26. Thread: spi 128x64

    by Jezsmith
    Replies
    30
    Views
    9,330

    Re: spi 128x64

    Charlie,
    Didnt spot that either but it appears staightforward to change the cdata to dim as code


    Dim arial8 As Code = 8,6,_
    $00,$60,$60,$00,$00,$00,_ '46 - . - 2E
    ...
  27. Thread: spi 128x64

    by Jezsmith
    Replies
    30
    Views
    9,330

    Re: spi 128x64

    Simon,
    Busy this week so not done a lot on project, the variable font looks good, was my theory correct (in post 13) or did you find a better way? I think variable height would require a different...
  28. Thread: spi 128x64

    by Jezsmith
    Replies
    30
    Views
    9,330

    Re: spi 128x64

    simon,
    looks good
    I have not used var width as I did not need them as first. You would need a new procedure to work with a var width table format.

    Looking at the format there is an index table...
  29. Thread: spi 128x64

    by Jezsmith
    Replies
    30
    Views
    9,330

    Re: spi 128x64

    Simon,
    these are the inc file for some fonts i use in my project,

    'Arial24.inc"



    GoTo over_arial24
    '
    ' Font code memory table
  30. Replies
    6
    Views
    10,967

    Re: Finding my perfect PIC

    Simon,
    I think you can use program memory as EEPROM on a pic24 to emulate EEPROM in data memory. There are some code application on the microchip web site but are written in 'C' if it helps


    its...
  31. Replies
    5
    Views
    4,798

    Re: pic reset during program run

    resolved
    The RCON register bit 15 was set "Trap conflict" error, I do not profess to understand in the slightest what that meant, but it did seem to rule out all the other possibilities. Software...
  32. Replies
    5
    Views
    4,798

    Re: pic reset during program run

    thanks,
    No not yet as back to work this week I will try the sugestion on my day off
    cheers
  33. Thread: SPI Modes

    by Jezsmith
    Replies
    8
    Views
    6,776

    Re: SPI Modes

    teo,
    There are examples on the forum. If look on the wiki under AD there is a working example for this device

    regards
    jez
  34. Replies
    0
    Views
    915

    returning results from procedures

    Just an example from previous thread when I asked about returning multiple results from a procedure Les showed how to do it. This is a practical example of retuning two floats for the distance and...
  35. Replies
    5
    Views
    4,798

    pic reset during program run

    hi,

    I am moving a current project over to p24 which runs GPS parsing code saves gps tracks onto an sd card. If I run the code for the sd cardand comment out the extract gps bit, it works...
  36. Thread: SPI Modes

    by Jezsmith
    Replies
    8
    Views
    6,776

    Re: SPI Modes

    Teo
    Each SPI mode is formally defined with a pair of parameters called ‘clock polarity’ (CPOL) and ‘clock phase’ (CPHA). the SPI modes (0,1,2,3) set the points on the clock pulse data is sampled and...
  37. Replies
    8
    Views
    4,650

    Re: procedure to print

    john,
    I have this in a wiki format now but somehow have got it stuck in 'other' .If you could assist in publishing it, perhaps needs moving into the LCD area, I would be grateful

    anybody out...
  38. Thread: spi 128x64

    by Jezsmith
    Replies
    30
    Views
    9,330

    Re: spi 128x64

    thanks Les,
    I will apply this and have a go at returning a some map co-ords

    regards
    jez
  39. Thread: spi 128x64

    by Jezsmith
    Replies
    30
    Views
    9,330

    Re: spi 128x64

    Many thanks john,
    regrads
    jez
  40. Thread: IFS0bits ?

    by Jezsmith
    Replies
    2
    Views
    2,001

    Re: IFS0bits ?

    simon,
    Not sure if this helps but here is the code that runs two interrupts at the same time one takes a pressure reading every second and the other changes the HPWM freq depending the rate of...
  41. Thread: spi 128x64

    by Jezsmith
    Replies
    30
    Views
    9,330

    spi 128x64

    Hi,
    Here is a bit of code for any ST7565 display using hardware SPI ,I have used 3 font sizes 8, 16 and 24 which is 1, 2, 3 lcd page heights. I have mostly used procedures to break it down into...
  42. Replies
    33
    Views
    15,166

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

    Simon,
    Beats me, I have found them much easier to PCB design, and setting any pin to perform a hardware function is just plain brill. Procedures appear to work more the way my brain works,, also so...
  43. Replies
    8
    Views
    4,650

    Re: procedure to print

    john, no worries, I need big fonts so I need to do a bit more work, then I will put it on the wiki.
    cheers
    Jez
  44. Replies
    8
    Views
    4,650

    Re: procedure to print

    resolved

    convert24.inc

    PrintAt(2,10,WordToASCII(alti,10))

    cheers
    jez
  45. Replies
    8
    Views
    4,650

    procedure to print

    Hi,
    I have had some success converting my code to use HW_SPI on p24 and print on a dog128x28 lcd. However the print procedure i conjured up does not print numbers as I thought it would. I used a...
  46. Thread: compile P24

    by Jezsmith
    Replies
    1
    Views
    1,094

    Re: compile P24

    sorted I think, just kept pressing compile and it eventually give an error code of, cOUT_Fn_SCK1 not found

    PPS_Output(cOut_Pin_RP14, cOut_Fn_SCK1) Changed to PPS_Output(cOut_Pin_RP14,...
  47. Thread: compile P24

    by Jezsmith
    Replies
    1
    Views
    1,094

    compile P24

    hi,
    I am trying figure out how to use the hardware SPI for a dog 128x64 display, i came across this bit of code and spi.inc file. The below code does not compile if I have the PPS line in it, for...
  48. Thread: SD card P24

    by Jezsmith
    Replies
    1
    Views
    1,452

    SD card P24

    HI,
    I am trying to use the SD card procedures and I am getting a bit stuck. When I use below routine, it gets beyond the initialisation line, i.e. prints "SD Initialised" so I guess my wiring etc...
  49. Thread: HRSout

    by Jezsmith
    Replies
    2
    Views
    2,504

    Re: HRSout

    sorted,
    who would have guessed it, it was the ftdi chip, replaced it, and it works, sorry for any inconvenience
    regards
    jez
  50. Thread: HRSout

    by Jezsmith
    Replies
    2
    Views
    2,504

    HRSout

    hi,
    compiler 3.5.6.6,
    when using below, the output is a stream of nuls (hex 00)
    any ideas
    regards
    Jez



    HRSOut Demo
  51. Replies
    10
    Views
    5,764

    Re: interrupt pausing

    les,
    no Glcd is just in an include file
    regards
    jez
  52. Replies
    10
    Views
    5,764

    Re: interrupt pausing

    evening all,
    I have found the cause of the interrupt pausing but I do not understand why.

    I started from scratch and used three ways to create an interrupted beep using T1 and T3 interrupts. all...
  53. Replies
    10
    Views
    5,764

    Re: interrupt pausing

    les,
    Thanks I have the PWM code and trying to integrate it. With regards to the interrupt in a procedure I need to change the interrupt period on the hoof as the pressure changes. In the below code...
  54. Replies
    10
    Views
    5,764

    Re: interrupt pausing

    les
    thank you,
    I will follow your suggestions as always very helpful
    regards
    jez
  55. Replies
    10
    Views
    5,764

    interrupt pausing

    Hi,
    I have a small niggle in my code. I have two interrupts T1 and T2. T1 acts a bit like an interrupted oscillator by switching a transistor controlling the CCP2 PWM output which drives a peizo...
  56. Replies
    2
    Views
    3,285

    Re: version 1.0.1.5

    john, many thanks,jez
  57. Replies
    2
    Views
    3,285

    version 1.0.1.5

    I have tried to update patch for HRsout in the P24, to 1.0.1.5 and the link does not allow access to the update.
    any ideas?

    regards
    JEz
  58. Thread: HPWM proton24

    by Jezsmith
    Replies
    13
    Views
    8,645

    Re: HPWM proton24

    Les,
    Many thanks,
    I need to get head around procedures. Am I correct in thinking I can write a shed load of procedures to deal with each aspect of my program and call them when needed from the main...
  59. Thread: HPWM proton24

    by Jezsmith
    Replies
    13
    Views
    8,645

    Re: HPWM proton24

    Les,
    thankyou, using T3 and it works a treat
    jez
  60. Thread: HPWM proton24

    by Jezsmith
    Replies
    13
    Views
    8,645

    HPWM proton24

    HI,
    I require two interrupts to control my variometer , one for taking air pressure every second and one for interrupting the HPWM to create a beep beep sound proportional to the delta change in...
  61. Replies
    8
    Views
    9,580

    Re: Byte array terminating early

    John,
    thanks,

    I still have difficulties with the byte arrays. I still can not fathom out why the array is "ABC" but the compiler disagrees with me and shows "A0B0C0" . Hence it only ever prints...
  62. Replies
    8
    Views
    9,580

    Re: Byte array terminating early

    Hi,
    I have done a few tests as suggested through USART to a terminal and it shows a null between each char, hence I can only print the first char from a string. I do not see how the null is getting...
  63. Replies
    8
    Views
    9,580

    Re: Byte array terminating early

    thanks
    i will investigate
    jez
  64. Replies
    8
    Views
    9,580

    Re: Byte array terminating early

    cheers,
    Well spotted I will put that right, the code works fine on the 8bit pics on 3.5.5.2. The same code does not go through the array in 3.5.5.9 on a 24f as described in post 1 , its as though a...
  65. Replies
    8
    Views
    9,580

    Byte array terminating early

    HI,
    THis is my Dog 128x64 routines that I use. If I use this routine on 24FJ it will only print the first Char on the LCD in the array. If I remove the "If databyte = 0 Then Break" line it will...
  66. Replies
    1
    Views
    1,117

    3.5.5.8 PPI file

    Hi,
    Query re PPI file.
    curious issue
    Loaded the new update onto windows 7 and all works well (thanks very much by the way Les) but for some reason my pickit2 does not program properly so I copied...
  67. Replies
    20
    Views
    7,840

    Re: strange result float

    Les,
    Sounds great, and thanks for the pointers everyone. Solving this issue has helped me crack the British grid to lat lon conversion now with some offset corrections enabling 20 meter accuracy....
  68. Replies
    20
    Views
    7,840

    Re: strange result float

    Thanks, to you both

    Turning the Negative float into a negative integer and then evaluating the integer is the way to resolve the issue. The IF THEN and SELECT statements do not appear to work with...
  69. Replies
    20
    Views
    7,840

    Re: strange result float

    thanks joseph,The re arranging does not alter the fundamental issue. You can not use the normal IF THEN ELSE and SELECT statements to test between negative floating point numbers as you can with...
  70. Replies
    20
    Views
    7,840

    Re: strange result float

    les
    thanks,
    My example code works with floating point numbers if they are positive, but it does not if the numbers are negative floats. I can not seem to get the IF Then And Select to work with...
  71. Replies
    20
    Views
    7,840

    Re: strange result float

    les,
    Thanks very much, that has resolved the float number showing correctly. Am I to accept IF THEN statements and SELECT statements can not compare negative floating point numbers as I am...
  72. Replies
    5
    Views
    3,261

    [SOLVED !] Re: 18f46k20 USART&ADC Problems

    bugra,
    Not sure about HSERIN but I use the 18f46k20 ADC for touch screen and its OK.


    jez
  73. Replies
    20
    Views
    7,840

    Re: strange result float

    very strange,

    It too returns the wrong result of '0.0006' . Considering 0.0006 never comes into the test, and variable 'a' is set to 0.0007 in code, I am baffled as to where this comes from. ...
  74. Replies
    20
    Views
    7,840

    strange result float

    HI,
    I am wishing to apply a correction value to a Lat and Long depending on the lat long returned. I have been working on this for a while and could not understand why I was getting strange results....
  75. Replies
    14
    Views
    7,697

    Re: complicated sums

    Norm,
    Yes those are the ones, below is the full version less the iteration at the start to get the latitude to plug into the main set of equations. The worked example is from (OS) with the expected...
  76. Replies
    14
    Views
    7,697

    Re: complicated sums

    Norm,
    Yes all the simple trig equations are kept as is , The main ones I divided out by '1000,000' were 'nu', and all the multiples of 'nu', 'Rho' and all elements in the equations with 'rho' in...
  77. Replies
    14
    Views
    7,697

    Re: complicated sums

    Norm,
    This is about were I am at, I reckon the accuracy has gone a bit because of taking out XIIA , XII. I felt I could get this back with some offsets hard coded also i have pre calculated a few...
  78. Replies
    14
    Views
    7,697

    Re: complicated sums

    Norm,
    Set to 16, I think it may well be my programming also, but my efforts took 30 seconds to compute one way point (Lat Long) in isis, which is a bit to long, 5 or 6 seconds each would have been...
  79. Replies
    14
    Views
    7,697

    Re: complicated sums

    just an update,

    Thanks, the Nbitmaths worked well, but unfortunately due to the number of calculations is was too slow for my project in the end. I tried a 32bit pic which worked, but I found it...
  80. Replies
    14
    Views
    7,697

    Re: complicated sums

    thanks to you both,
    Yes its looks very resource hungry, that said I only need to run the conversion once when I enter turn points in at the start of the day. The routine will therefore not be...
  81. Replies
    14
    Views
    7,697

    complicated sums

    hi,
    I have doing some coordinate conversions from lat/lon to british grid (BNG) without to much difficulty on a pic18f26K20 but I have stumbled a tad, when going the other way i.e. BNG to lat long....
  82. Thread: print macro

    by Jezsmith
    Replies
    6
    Views
    2,011

    Re: print macro

    Thankyou Tim,
    The pre-processor stuff appears more straight forward than I anticipated and tidies things up a treat.
    Much appreciated for your help.
    regards
    jez
  83. Thread: print macro

    by Jezsmith
    Replies
    6
    Views
    2,011

    Re: print macro

    Tim,
    I will have to a bit reading to grasp the preprocessor. Am I right in thinking its a way of writing a function to perform a task? looking at the help pdf. The print function would have to print...
  84. Thread: print macro

    by Jezsmith
    Replies
    6
    Views
    2,011

    print macro

    hi,
    I have been using the dog160x104 lcd with a uc1610 controller for some time now. My issue is, as my programs get more complicated and long, the print routines I made clutter the code up...
  85. Replies
    10
    Views
    7,652

    Re: HIGH_Int_Sub_Start

    Time does fly,

    "The High_Int_Sub_Start / End directives encompassing an interrupt handler were removed from the compiler in version 3.5.2.9, "

    regards
    jez
  86. Replies
    19
    Views
    5,278

    Re: ST7565 DOG128x64

    barak,
    cheers, its the barametric pressure from ms5611b which outputs a DWord value, . I will PM
    regards
    Jez
  87. Replies
    10
    Views
    7,652

    Re: HIGH_Int_Sub_Start

    ronirac
    yep still working ok without them, although i have rolled back to the previous compiler version until I can workout why some of my code does not appear to function properly. I am sure it...
  88. Replies
    19
    Views
    5,278

    Re: ST7565 DOG128x64

    dave,
    yes I have, no problem printing text on the screen including big text,(barak) has done some really good code for the display but I am having trouble with that code displaying dword variables...
  89. Replies
    19
    Views
    5,278

    Re: ST7565 DOG128x64

    Dave,
    The screen is similar to the samsung 128x64 with 7 rows for text , vertical bytes bit0 down to bit7. I am looking at (when vertical) at 8 rows (12x16) ish numbers.
    regards
    Jez
  90. Replies
    19
    Views
    5,278

    Re: ST7565 DOG128x64

    cheer bill,
    After upgrading to 3.5.5.5 everthings stopped compiling properly, once sorted out I will give it a go
    cheers
    Jez
  91. Replies
    19
    Views
    5,278

    Re: ST7565 DOG128x64

    dave,
    many thanks
    jez
  92. Replies
    10
    Views
    7,652

    Re: HIGH_Int_Sub_Start

    barak
    yes it appears to be working with the lines removed, i will keep an eye on it for a while
    cheers
    jez
  93. Replies
    10
    Views
    7,652

    HIGH_Int_Sub_Start

    hi,
    just updated compiler to 3.5.5.5.

    I now get error message regarding HIGH_Int_Sub_Start , LOW_Int_Sub_start and FLOAT_DISPLAY_TYPE = LARGE all cause compile error. The same prog compiles on...
  94. Replies
    19
    Views
    5,278

    Re: ST7565 DOG128x64

    bark,
    thanks for your help, I will give it a go
    regards
    JEz
  95. Replies
    19
    Views
    5,278

    Re: ST7565 DOG128x64

    thanks,
    I have managed a 12x16 rotated font, but it occupies to pages or lines of text. As the LCD only has 8 lines I can only manage four digits across the screen in vertical orientation and it has...
  96. Replies
    19
    Views
    5,278

    Re: ST7565 DOG128x64

    barak,
    Thanks I have used your code, but it does the same. The print command prints the numbers on the LCD (lines of text) page 0-7. I need to print them as pixel print does at any location to fit...
  97. Replies
    19
    Views
    5,278

    ST7565 DOG128x64

    hi,
    I am trying to use the LCD in portrait orientation so I need to rotate the text 90 deg. The display is 128x64 and has 8 pages from 0-7 running down the LCD. I need to print a five digit number...
  98. Replies
    12
    Views
    5,237

    Re: Pressure sensor MS5611

    John,
    OK I will put a write up a wiki article for the MS5611
    cheers
    Jez
  99. Replies
    12
    Views
    5,237

    Re: Pressure sensor MS5611

    Hi,
    Managed to get these pressure sensors working, I have cut out the code from my project that matters for anyone who is thinking of using this device. I have been using the bmp085 which is ok, ...
  100. Replies
    12
    Views
    5,237

    Re: Pressure sensor MS5611

    les,
    thanks, the device has arrived today, so lets see if its as good as i am led to believe.
    cheers
    jez
  101. Replies
    12
    Views
    5,237

    Re: Pressure sensor MS5611

    thanks guys,
    John the 2 15 is 2 raised to pow of 15 the subscript has not copied over correctly, likewise 216 is 2 to the 16 and so on. The thread will give me something to go on bob.
    regards
    Jez
  102. Replies
    12
    Views
    5,237

    Re: Pressure sensor MS5611

    thanks Roshan,
    My query is more to do with the variable type recommended in the data sheet to hold the temperature compensated pressure calculation, this is sited to require a 64bit signed integer...
  103. Replies
    7
    Views
    3,749

    [SOLVED !] Re: EA DOGM128B-6 display

    Hi,
    I use the EA DOG range 128x64 and 160x104, complicated but once you get the hang of them they are very good displays mainly due to COG, 2.54 PCB pins and only five pic pins required. This is a...
  104. Replies
    12
    Views
    5,237

    Pressure sensor MS5611

    Dear all,
    I have been looking at using the MS5611 absolute pressure sensor, however reading the data sheets part of the conversion maths routine which returns the pressure requires two 64bit...
  105. Thread: 32mhz pll

    by Jezsmith
    Replies
    9
    Views
    3,292

    Re: 32mhz pll

    charlie thanks, will attempt to do that tonight,
    regards
    jez
  106. Thread: 32mhz pll

    by Jezsmith
    Replies
    9
    Views
    3,292

    Re: 32mhz pll

    thanks paul but thats not the answer,
    I am using the internal 8mhz osc so xtal =8 should be right. If you enter a number greater than 8 for the XTAL command, an error message "PLL can not multiply...
  107. Thread: 32mhz pll

    by Jezsmith
    Replies
    9
    Views
    3,292

    32mhz pll

    hi,
    puzzed as to why when I set the PLL multiplier to 32mhz, my program will not recieve the data stream from the GPS which belts it out at 9600baud. If I comment out the two lines'Declare PLL_Req...
  108. Replies
    6
    Views
    1,711

    Re: interrupt and serout

    Paul
    thanks
    regards
    jez
  109. Replies
    6
    Views
    1,711

    Re: interrupt and serout

    thanks,
    I could use Hserout on the send pic but I only have portc.0 and portc.1 available to me on the recieve chip. So would there be any issues sending with Hserout and recieving with Serin....
  110. Replies
    6
    Views
    1,711

    Re: interrupt and serout

    Thanks tim,
    I will read up on the "flag it to the main code"
    regards
    jez
  111. Replies
    6
    Views
    1,711

    interrupt and serout

    hi,
    I have put my Serout inside an interrupt. on this project (Vario pic26k20)

    I need to do three things at once so to speak

    1) Send the pressure to a second pic every second.
    2) Grab the...
  112. Replies
    2
    Views
    1,080

    Re: High_Int_Sub_End

    hi les thanks for the reply

    1434
  113. Replies
    2
    Views
    1,080

    High_Int_Sub_End

    HI,
    Quick question I hope
    using IDE 2.0.1.0
    compiler 3.5.1.7
    pic 26k20

    When I use High_Int_Sub_End/start it does not show as bold as below, but in plain text, and I am sure it used to. So I...
  114. Thread: Moving map

    by Jezsmith
    Replies
    4
    Views
    2,037

    Re: Moving map

    Bill,
    not sure what sprint image does but I will have a shufty
    thanks
    Jez
  115. Thread: Moving map

    by Jezsmith
    Replies
    4
    Views
    2,037

    Re: Moving map

    Lester,
    Thanks I will do that
    regards
    Jez
  116. Thread: Moving map

    by Jezsmith
    Replies
    4
    Views
    2,037

    Moving map

    Dear all,
    I have constructed a simple map of the uk showing airspace boundaries called airspace.bmp. It is obviously larger than the 160 x 104 mono screen. I would therefore like to load the map...
  117. Thread: Hex Check sum

    by Jezsmith
    Replies
    4
    Views
    3,335

    Re: Hex Check sum

    Hi,

    problem resolved by using the LEN statment to return the length of the string.

    cheers
    Jez
  118. Thread: Hex Check sum

    by Jezsmith
    Replies
    4
    Views
    3,335

    Re: Hex Check sum

    Sorry
    OK STR$ does cut down the code. BUt still can not get the 46k20 to produce the same results?????


    cheers
    JEz


    'tracklog =...
  119. Thread: Hex Check sum

    by Jezsmith
    Replies
    4
    Views
    3,335

    Re: Hex Check sum

    Thanks,
    could not see how how to use STR$ to handle the hex numbers.

    I have resolved the problem in part by using the below routine. However it works using the ISIS simulator using the below...
  120. Thread: Hex Check sum

    by Jezsmith
    Replies
    4
    Views
    3,335

    Hex Check sum

    HI,

    I am trying to add a hex check sum at the end of a string, in this case it should be "6D" but all I seem to able to do is add the dec or ascii character. I can not figure out how to store the...
  121. Replies
    4
    Views
    3,146

    Re: SERIAL baudrate

    Thanks,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
    <o:p></o:p>
    I have gone for a simpler format using Magellan protocol no switching baud rates for TX...
  122. Replies
    4
    Views
    3,146

    Re: SERIAL baudrate

    Paul
    thanks for that, that would explain it. I will look at an easier protocol like Magellan

    regards
    jez
  123. Replies
    4
    Views
    3,146

    SERIAL baudrate

    HI,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
    I am trying to emulate the MLR Gps protocol using a pic 18f26k20 and 46k20 as this is a widely used...
  124. Thread: GPS Updates

    by Jezsmith
    Replies
    8
    Views
    3,189

    Re: GPS Updates

    hi,
    just an update,

    Managed to set the GPS (LS20031) to 5hrz , increased the baud rate (Still testing as it goes up to 57600) found that you can switch off unwanted gps sentances and tell the...
  125. Thread: GPS Updates

    by Jezsmith
    Replies
    8
    Views
    3,189

    Re: GPS Updates

    Charlie,

    good spot, not sure if that should effect it as I am using internal osc 8mhz x 4 with the PLL decleration but will have a fiddle and do some reading,

    cheers
    Jez
  126. Thread: GPS Updates

    by Jezsmith
    Replies
    8
    Views
    3,189

    Re: GPS Updates

    Ryan,
    Noted, my LS23001 appears to go to 5hz. I understand that the 232 would not effect the gps, I was just thinking that the rsin command I used may not capture the data first go so was trying...
  127. Thread: GPS Updates

    by Jezsmith
    Replies
    8
    Views
    3,189

    Re: GPS Updates

    joe,

    Your right life is to short, Good job I did not post the full program. I am going to try hserin and a max232 and risk having to solder SMT parts to make it all fit.

    regards
    jez
  128. Thread: GPS Updates

    by Jezsmith
    Replies
    8
    Views
    3,189

    GPS Updates

    Hi,
    Question regarding displaying gps data. My GPS module updates every 1 second but I can not seem to cause the LCD display to update every second also. The updates only occur every 4seconds. I am...
  129. Replies
    15
    Views
    3,710

    Re: Probable impossible code conversion

    Tim,
    hope this helps the Latmeters/Lonmeters are derived from the distance between 1 degree of arc of both Lat and Lon and are very close. I did try to use the complicated stuff but never really got...
  130. Replies
    15
    Views
    3,710

    Re: Probable impossible code conversion

    tim,
    Im sure you are after some serious accuracy but for what its worth I use very simple calculation for paragliding and its surprisingly accurate, and certainlygood enough for paragliding...
  131. Replies
    15
    Views
    3,710

    Re: Probable impossible code conversion

    tim,
    sorry keep sending stuff twice



    cheers
    Jez
  132. Replies
    17
    Views
    5,148

    Re: Interrupt timer

    joe,
    I think I understand now
    1) portc.0 is the external clock input for timer1
    2) send the HPWM freq int0 this pin to act as the timer1 clock pulse
    3)Set the timer1 to interrupt when it...
  133. Replies
    17
    Views
    5,148

    Re: Interrupt timer

    Joe,
    The code I posted was just to test the theroy of developing a digital VARIO as my current models are analouge and therefore a lot of bits on the board and two pic chips. I was using a pot on...
  134. Replies
    17
    Views
    5,148

    Re: Interrupt timer

    OK,
    I thinkI am getting there I have managed to create an interrupt that a) collects the sensor pressure every 0.75 seconds stores it in a variable pressure2 and also provides an interrupted...
  135. Replies
    17
    Views
    5,148

    Re: Interrupt timer

    sorry posted twice
  136. Replies
    17
    Views
    5,148

    Re: Interrupt timer

    Jo,
    well spotted, not sure why I wanted to change the duty either, I think I was confusing it with the sound type command thinking it was like duration. It appears to be working with the variables...
  137. Replies
    17
    Views
    5,148

    Re: Interrupt timer

    hi
    Resloved in part using the HIGH_Int_Sub_Start / End either side of the interrupt handler. This has allowed the LCD, Pressure sensor and Interupted tone generation to function. it does however...
  138. Replies
    17
    Views
    5,148

    Re: Interrupt timer

    hi,

    Again, thanks for the tips I opted to go for as simple as possible and use an interrupt to toggle a pin which switches on and off a transistor (Just changing the HPWM pins state did not seen...
  139. Replies
    17
    Views
    5,148

    Re: Interrupt timer

    thanks,
    you have given me some ideas to move forward

    jez
  140. Replies
    17
    Views
    5,148

    Interrupt timer

    HI,
    I have building combined flight GPS/Altimeter/vertical speed indicators for some time currently using a pic 18f46k20 as the main brain for gps, logging and telemetry etc, and to date I have...
  141. Replies
    5
    Views
    2,526

    Re: Hserin 18f46K20

    hi,
    just replying to myself,

    Many hours of reading solved the issue. set SPBRG to 25
    marvelous

    jez
  142. Replies
    5
    Views
    2,526

    Hserin 18f46K20

    Hi,

    I am trying recieve GPS data using the hardware EUSART on a 18f46k20 and it does not recieve (incidently the code works fine on a 18f2525) the GPS serial data. Does anyone know if these...
  143. Replies
    46
    Views
    13,979

    Re: ea dog graphic lcd

    thanks all,

    dave sent you a message thanks I will have another go at it when I get home from work today
    cheers
    Jez
  144. Replies
    46
    Views
    13,979

    Re: ea dog graphic lcd

    HI,

    managed to sort out the mirrored text issue by reversing the values in the nibble routine you kindly posted (Dave) it worked i think because the row byte started at the top with 0 down to 7....
  145. Replies
    46
    Views
    13,979

    Re: ea dog graphic lcd

    dave,
    thanks,

    I need glasses also for reading and as the flight instrument I am building will sit an my knee I will need a bigger font ultimately. I have managed to send GPS, Alimeter ADC data to...
  146. Replies
    46
    Views
    13,979

    picture of lcd soory crap quality due to crap...

    picture of lcd
    soory crap quality due to crap mobile phone


    4008
    cheers
    jez
  147. Replies
    46
    Views
    13,979

    dave, Thanks will have a look this morning ...

    dave,
    Thanks will have a look this morning

    cheers
    JEz
  148. Replies
    46
    Views
    13,979

    --------------------------------------------------...

    --------------------------------------------------------------------------------

    sorry sent this in error
  149. Replies
    46
    Views
    13,979

    Dave, OK I think I have the newer version on...

    Dave,

    OK I think I have the newer version on my machine now its compiler 3.4.0.6 IDE 2.0.0.5

    this line now has the $define highlighted in red,,,,it did not before
    "" $define GLCD_SendData(P1)...
  150. Replies
    46
    Views
    13,979

    Bob, Yes you are looking at the wrong display...

    Bob,

    Yes you are looking at the wrong display the one I have bought is a display on glass type with a UC1610 controller.
    cheers
    Jez
  151. Replies
    46
    Views
    13,979

    Dave, RE post 22 yes it did what it said and...

    Dave,

    RE post 22 yes it did what it said and displayed the byte on the screen
    1
    1
    1
    1
    0
    0
    0
  152. Replies
    46
    Views
    13,979

    Dave, long day messing with fonts but finaly...

    Dave,

    long day messing with fonts but finaly got a result. I can print a 7x5 font anywere on the screen. The only difficulty is the normal font table is mirrored horatontaly. Solved this by re...
  153. Replies
    46
    Views
    13,979

    Dave, thanks I have managed to sort the column...

    Dave,
    thanks
    I have managed to sort the column address problem, this code works fine I can now select any colum from 0-159 using this

    Lcd_GotoXY:
    Low CD ' prepare to send command
    ...
  154. Replies
    46
    Views
    13,979

    Hi, After much reading. I have managed to modify...

    Hi,
    After much reading. I have managed to modify some code for a nokia 3310 which seems to have a similar LCD arrangement to the UC1610. The modified code works ok and I can print text on the screen...
  155. Replies
    46
    Views
    13,979

    dave, I need to do a lot of reading to grasp...

    dave,

    I need to do a lot of reading to grasp how LCD controllers work, the data sheets are OK if you understand the terminology in the first place. I have managed to write a 4x4 square starting on...
  156. Replies
    46
    Views
    13,979

    The LCD is a EA DOGXL 160 -7 160x104 UC1610...

    The LCD is a EA DOGXL 160 -7 160x104 UC1610 Yellow/Green refective. Managed a clear screen routine. If any one could set me off in the right direction in providing a print routine prehaps with a font...
  157. Replies
    46
    Views
    13,979

    David, Page 382 In the shin/shout command...

    David,


    Page 382 In the shin/shout command ref "will generate the clock signal on the clock pin" to collect the data. I reckon its right because the screen is working ok and I can send commands...
  158. Replies
    46
    Views
    13,979

    HI, I have recieve said display today , I have...

    HI,

    I have recieve said display today , I have figured I need to write a few functions to make it usable such as clear the screen print at etc. I have little experience in this area but have...
  159. Replies
    46
    Views
    13,979

    brian, thanks jez

    brian,
    thanks
    jez
  160. Replies
    46
    Views
    13,979

    dave, thanks, this code looks just what i am...

    dave,
    thanks, this code looks just what i am after, the LCD is about ten days delivery so I'll crack on with the non screen stuff. I will let you know how it goes when it comes:)
    cheers
    Jez
  161. Replies
    46
    Views
    13,979

    no worries guys Its not arrived yet but reading...

    no worries guys
    Its not arrived yet but reading the data I think I will be able to fire it up. I will see how I get on and post the results good or bad. Dave I would appreciate an assist with the...
  162. Replies
    46
    Views
    13,979

    ea dog graphic lcd

    Hi,

    I have come across a low cost reflective graphic (EA DOGXL160-7) LCD 160 x 104 res with UC1610 serail/I2c controller, touch screen, 3.3v and has very low profile. Has any one used one of these...
  163. Replies
    14
    Views
    3,621

    hi, tere is a sample ADC routine in the samples...

    hi,
    tere is a sample ADC routine in the samples folder for this chip which I have used many times.
    cheers
    JEz
  164. Thread: include font

    by Jezsmith
    Replies
    4
    Views
    1,649

    Tim, Its never the big things that kill you its...

    Tim,
    Its never the big things that kill you its all the little simple things you become blind to

    all working
    thanks
    jez
  165. Thread: include font

    by Jezsmith
    Replies
    4
    Views
    1,649

    Tim, here is the little test program just to...

    Tim,

    here is the little test program just to make sure thing are working. LCD does not work doing this it only works if I paste the Cdata font at the bottom of the program and take out the include...
  166. Thread: include font

    by Jezsmith
    Replies
    4
    Views
    1,649

    include font

    Hi people

    Just a quikie, I apologise in advance if I have completly over looked something but the issue I have come across is,,,, if I "include" a font for use with a graphics display (in this...
  167. Thread: 320 x 240 LCD

    by Jezsmith
    Replies
    2
    Views
    3,139

    Thanks for this, I was hoping that someone...

    Thanks for this,

    I was hoping that someone may have had some practical knowledge of using a pic with a controller chip and prehaps offer some advice on how this was achieved. I have read the data...
  168. Thread: 320 x 240 LCD

    by Jezsmith
    Replies
    2
    Views
    3,139

    320 x 240 LCD

    HI,
    Happy new year

    I have bought a couple of ALPS LRH9J5052A monchrome 320x240 0.24 pitch touch screen LCD displays at a good price of 6.50 each. They do not have a controller built in but have...
  169. Replies
    1
    Views
    2,534

    hi, you need to capture the gps string using one...

    hi,
    you need to capture the gps string using one of the methods on this forum. I use the comma to find the values in the gps string i want.

    This snipet is a string based routing to convert the...
  170. Thread: Sd Card

    by Jezsmith
    Replies
    4
    Views
    2,777

    Thanks, I have tried with Optimize at Zero...

    Thanks,

    I have tried with Optimize at Zero with out success. all the SD pins remain exactly the same, I do not alter them. Flustratingly I can run a simple card system including formatting...
  171. Thread: Sd Card

    by Jezsmith
    Replies
    4
    Views
    2,777

    Thanks Even with the Inc file name the same...

    Thanks

    Even with the Inc file name the same it does not get past the "Insert SD card" and again when I omit the SD routines the GPS part works fine and equally the SD card part works fine but...
  172. Thread: Sd Card

    by Jezsmith
    Replies
    4
    Views
    2,777

    Sd Card

    Hi,
    I am having a problems intigating some SD card routines into my GPS Logger. The gps part of the programs works well on its own and so does the SD card part, formatting writing and saving OK. The...
  173. Replies
    15
    Views
    4,076

    Cruster thanks, My projects are altimiters...

    Cruster
    thanks,

    My projects are altimiters and the resolution looks very good on this device. I am just awaiting a 32khz clock to arrive and I will get to work on it. Thanks for the pointers.
    ...
  174. Replies
    15
    Views
    4,076

    thanks Cruster this should get me stated jez

    thanks Cruster
    this should get me stated
    jez
  175. Replies
    15
    Views
    4,076

    hi all, If any one could assist with a few...

    hi all,
    If any one could assist with a few snipits of code to read this device it would be most appeciated and would save me few late nights.
    cheers
    jez
  176. Replies
    15
    Views
    4,076

    cheers, looks like another componant on the...

    cheers,

    looks like another componant on the board, hey ho!

    jez
  177. Replies
    15
    Views
    4,076

    MS5534 altimeter

    HI,
    Has anyone had any joy interfacing the MS5534 to a pic and Is it possible to generate the required clock 32khz ish from the pic without increasing the parts count,

    cheers

    jez
  178. Thread: rotate text

    by Jezsmith
    Replies
    5
    Views
    2,605

    thanks for the replies, I have found Octal...

    thanks for the replies,

    I have found Octal GLCD program and it is a lot easier to use and has solved the position difficulties.

    cheers

    jez
  179. Thread: rotate text

    by Jezsmith
    Replies
    5
    Views
    2,605

    Hi Tim Its called fontconvertor and its a...

    Hi Tim

    Its called fontconvertor and its a shareware program. It seam very comprehensive create and alter TTF in store then in the font folder.

    Is the way you would rotate text or do you know of...
  180. Thread: rotate text

    by Jezsmith
    Replies
    5
    Views
    2,605

    rotate text

    For those that are interested. I have been trying to rotate text on a GLCD so you can use the screen in portrait orientation. For your information I have found a relatively simple but crude way of...
  181. Thread: mutople pics

    by Jezsmith
    Replies
    8
    Views
    1,757

    Hi, the resolution is impressive but entirely...

    Hi,
    the resolution is impressive but entirely normal for this type of instrument the time consant for the circuit is around 250ms so weather conditions have no effect only the changes in pressure...
  182. Thread: mutople pics

    by Jezsmith
    Replies
    8
    Views
    1,757

    hi, The gps does not come close unfortunatley....

    hi,
    The gps does not come close unfortunatley. The VSI is super accurate and can detect vertical movement of about 4cm/second and does so every 250ms this is why this bit is'nt digital, basically...
  183. Thread: mutople pics

    by Jezsmith
    Replies
    8
    Views
    1,757

    Hi, Thanks for the replys it seems it is...

    Hi,

    Thanks for the replys it seems it is possible to do it all on one pic in theroy. In practice I just can not get it to work smoothly. I am using a 18f452 for the project and its not a problem...
  184. Thread: mutople pics

    by Jezsmith
    Replies
    8
    Views
    1,757

    mutople pics

    hi,

    My problem is wanting two things to happen at once. I have built a gps combined with vertical speed indicator and altimiter. My problem is the gps part takes up all the time to compute leaving...
  185. Replies
    20
    Views
    6,176

    hi, here is the code to convert wgs84 into...

    hi,

    here is the code to convert wgs84 into OSGB36 so you can create Eastings and Northings in British Grid format.


    Dim temp1 As Float
    Dim temp2 As Float
    Dim temp3 As Float
    Dim temp4 As...
  186. Replies
    6
    Views
    1,674

    Ian,tim, Thanks it took three dumbytes All...

    Ian,tim,

    Thanks
    it took three dumbytes

    All ok

    cheers

    JEz
  187. Replies
    6
    Views
    1,674

    HI, code is now working (with a few...

    HI,

    code is now working (with a few adjustments ) Ok and output correct results but I still get a Yellow error temp19 crossing bank boundry access? any ideas to get rid?

    cheers

    jez
  188. Replies
    6
    Views
    1,674

    Tim, I have run the online updates from the...

    Tim,

    I have run the online updates from the ide and this appears to have solved the problem. I just have a yellow warning about temp19 crossing bank boundry but it does compile, with the wrong...
  189. Replies
    6
    Views
    1,674

    SQR assembler error

    hi,

    I have read that others in the past have have compile errors when using the SQR function. Has a patch been produced or does anyone know a work around. I am trying some trig maths using a...
  190. Replies
    20
    Views
    6,176

    Hi Nigel, Managed to get the code working to...

    Hi Nigel,

    Managed to get the code working to give an output with the correct preffix National grid letters also. The maths or me may be going a little off track somewere, because the actual...
  191. Replies
    20
    Views
    6,176

    Nigel, Thanks for this, You work rather...

    Nigel,

    Thanks for this, You work rather quicker than I do when I get back today I will try it out in my project.

    Cheers

    JEz
  192. Replies
    20
    Views
    6,176

    Hi all Thanks for the replies, Its given me...

    Hi all

    Thanks for the replies, Its given me plenty to go at. I have found some interesting spreadsheets and some Java script versions also to adapt, I do have some worked out examples using the...
  193. Replies
    20
    Views
    6,176

    Hi all Thanks for the replies, Its given me...

    Hi all

    Thanks for the replies, Its given me plenty to go at. I have found some interesting spreadsheets and some Java script versions also to adapt, I do have some worked out examples using the...
  194. Replies
    20
    Views
    6,176

    Cheers I was just hoping someone may have done...

    Cheers

    I was just hoping someone may have done all the hard work for me.I will attempt to do conversion and if successful I will post it up.

    Thanks

    Jez
  195. Replies
    20
    Views
    6,176

    Lat/Lon to british grid

    Hi,

    Has any one managed to convert the GPs string Lat Lon into OS Grid ie TA123 345 format using PIc Basic. I have found Programs written in 'C' but not basic


    Thanks


    JEz
  196. Replies
    20
    Views
    3,405

    nooby, This all looks very complicated, There...

    nooby,

    This all looks very complicated, There are three type of pressure in the world QFE which relates to the true height above your current elevation. knowing your current air pressure is...
  197. Replies
    20
    Views
    3,405

    atimeter

    nooby,

    HI

    I have built a alti/vario for paragliding using the MPX series


    Equation (1) for mpx "Pressure = ((Vout/5)+0.095)/0.009"

    Volts = (5/32767)*RESULT ' volts...
  198. Replies
    0
    Views
    1,333

    GLCD Text direction

    Hi,

    I would like to use a 128x64 GLCD in a portrait orientation in my device as apposed to landscape. First of all is it possible to print text rotated 90 degrees to do this?, and if so any help...
  199. Replies
    3
    Views
    1,599

    thanks very much, downloaded file and all is...

    thanks very much, downloaded file and all is working

    cheers

    jez
  200. Replies
    3
    Views
    1,599

    fONT CONVERTOR

    Hi,,
    I have upgraded to PDS and I have tried to run fontconvetor but all I get is and error message,,,, "componant Tabctr32.ocx or one of its dependacies not correctly registered:a file is missing...
Results 1 to 200 of 203
Page 1 of 2 1 2