Hi Benj
What do these do exactly???
adcon0 = 0x3C;
adcon1 = 0x0F;
cmcon = 0x07;
i added them in as you said and it works a treat, im am now a happy person.
Search found 175 matches
- Wed Jan 12, 2011 5:33 pm
- Forum: Flowcode V2 & V3
- Topic: Help with pic18f4685 + LCD
- Replies: 8
- Views: 6652
- Wed Jan 12, 2011 4:20 pm
- Forum: Flowcode V2 & V3
- Topic: Help with pic18f4685 + LCD
- Replies: 8
- Views: 6652
Re: Help with pic18f4685 + LCD
Hi Steve
Thanks for your reply, The timing options appear to be ok, in that the program is running and doing as it should (sort of) i have it set as HS with 20mhz xtal.
is there a particular part of the config i should be paying attention to??
Thanks for your reply, The timing options appear to be ok, in that the program is running and doing as it should (sort of) i have it set as HS with 20mhz xtal.
is there a particular part of the config i should be paying attention to??
- Tue Jan 11, 2011 10:27 pm
- Forum: Flowcode V2 & V3
- Topic: Help with pic18f4685 + LCD
- Replies: 8
- Views: 6652
Help with pic18f4685 + LCD
Having problems again, Decided in the end it was best to stick with the KS0108 LCD, i was using a 16f877 for my project but have filled the chip and need loads more space. So i decided to go for the 18f4685 loads of room in the same 40pin DIL package. I changed the PIC in the Chip, Target menu to th...
- Mon Nov 08, 2010 7:28 pm
- Forum: Flowcode V2 & V3
- Topic: 240 x 128 or 320 x 240 pixel GLCD??
- Replies: 7
- Views: 6139
Re: 240 x 128 or 320 x 240 pixel GLCD??
Thanks for the help so far Ben Starting with the first one on the list void MX_LCD_Enable (void) { set_bit(MX_CONTROL_PORT, MX_ENABLE); //delay_10us(1); //Min delay 450ns nop(); nop(); nop(); nop(); nop(); clear_bit(MX_CONTROL_PORT, MX_ENABLE); //delay_10us(1); //Min delay 1.5us nop(); nop(); nop();...
- Sun Nov 07, 2010 9:45 pm
- Forum: Flowcode V2 & V3
- Topic: 240 x 128 or 320 x 240 pixel GLCD??
- Replies: 7
- Views: 6139
Re: 240 x 128 or 320 x 240 pixel GLCD??
Hi Ben
Thanks for the reply, i really dont think i know enough to do this.
I looked for the send byte and i cant find anything in the file relating to this.
Is it possible for you to highlight the relavent areas of the code that will require some modification??
Thanks for the reply, i really dont think i know enough to do this.
I looked for the send byte and i cant find anything in the file relating to this.
Is it possible for you to highlight the relavent areas of the code that will require some modification??
- Sat Nov 06, 2010 6:07 pm
- Forum: Flowcode V2 & V3
- Topic: 240 x 128 or 320 x 240 pixel GLCD??
- Replies: 7
- Views: 6139
Re: 240 x 128 or 320 x 240 pixel GLCD??
I have been pointed to the file that describes how to make your own custom file.
Its a bit over my head, anyone any clues on what to do??
Its a bit over my head, anyone any clues on what to do??
- Thu Nov 04, 2010 4:35 pm
- Forum: Flowcode V2 & V3
- Topic: 240 x 128 or 320 x 240 pixel GLCD??
- Replies: 7
- Views: 6139
Re: 240 x 128 or 320 x 240 pixel GLCD??
This is the type of screen i would like to use if at all possible.
http://cgi.ebay.co.uk/4-320x240-Graphic ... 45f64197d1
http://cgi.ebay.co.uk/4-320x240-Graphic ... 45f64197d1
- Thu Nov 04, 2010 4:27 pm
- Forum: Flowcode V2 & V3
- Topic: 240 x 128 or 320 x 240 pixel GLCD??
- Replies: 7
- Views: 6139
240 x 128 or 320 x 240 pixel GLCD??
Is there any available for flowcode??.
Ideally i would like the 320 x 240 but either will do
Im using a 128x64 but could do with something a bit bigger.
Ideally i would like the 320 x 240 but either will do
Im using a 128x64 but could do with something a bit bigger.
- Thu Nov 04, 2010 8:56 am
- Forum: Flowcode V2 & V3
- Topic: 18f6722 PWM2 Pinout?
- Replies: 4
- Views: 4315
Re: 18f6722 PWM2 Pinout?
Hi again.
I found the menu you were refering to and also the option to select which pin is output.
Thanks for the help, i didnt even know this menu existed...
I found the menu you were refering to and also the option to select which pin is output.
Thanks for the help, i didnt even know this menu existed...
- Thu Nov 04, 2010 8:52 am
- Forum: Flowcode V2 & V3
- Topic: 18f6722 PWM2 Pinout?
- Replies: 4
- Views: 4315
Re: 18f6722 PWM2 Pinout?
Hi medelec
Im a bit of a noob at this sort of stuff, although im getting there slowly. I have a few questions.
Where is the configuration menu??
What is CCP2 mux??
How will i select which pin i want the PWM signal to come from??
Cheers
Im a bit of a noob at this sort of stuff, although im getting there slowly. I have a few questions.
Where is the configuration menu??
What is CCP2 mux??
How will i select which pin i want the PWM signal to come from??
Cheers
- Thu Nov 04, 2010 12:16 am
- Forum: Flowcode V2 & V3
- Topic: 18f6722 PWM2 Pinout?
- Replies: 4
- Views: 4315
18f6722 PWM2 Pinout?
Hi again, have had to upgrade to a bigger chip, so thought id go all out and use the 18f6722 loads of pins and memory. I want to use PWM2, looking at the datasheet this is set by default to RC1. I would like to use PWM2 using pin RE7, This is also set in the defines but is set as 2a. #define MX_PWM_...
- Wed Oct 27, 2010 12:40 pm
- Forum: Flowcode V2 & V3
- Topic: Timer problem with 16F877
- Replies: 4
- Views: 4308
Re: Timer problem with 16F877
ok, more progress it seems that there is an interupt used in the print number function, this interupt must be clashing with the timer0 interupt. if i disable the timer interupt just before using the print number function then all works well. but i cannot have the timer just running continuously whil...
- Wed Oct 27, 2010 12:10 pm
- Forum: Flowcode V2 & V3
- Topic: Timer problem with 16F877
- Replies: 4
- Views: 4308
Re: Timer problem with 16F877
Ok im making progress i have narrowed it downt to the PRINT NUMBER function if the timer is running and i use the PRINT NUMBER function, the program jams up. if the timer is not running all is good, i can use the timer with any other function in the LCD list apart from PRINT NUMBER Guessing there is...
- Wed Oct 27, 2010 1:36 am
- Forum: Flowcode V2 & V3
- Topic: Timer problem with 16F877
- Replies: 4
- Views: 4308
Timer problem with 16F877
Hi Im having a bit of a problem with the timer on the 16f877. i have an old project i built with using the 16f877 and used the timer for a built in clock function. I used a 4x20 display. This worked perfectly. This time round im using a ks0108 type LCD, and i cant get the timer to work correctly (if...
- Sun Oct 24, 2010 11:50 pm
- Forum: Flowcode V2 & V3
- Topic: Making text smaller?? (ks0108)
- Replies: 1
- Views: 2988
Making text smaller?? (ks0108)
Does anyone know how to make the text smaller in the KS0108 custom file??
i have worked out how to make text bigger but the smallest is 9 pixels x 6 pixels (i think)
Im trying to get something like 6 pixels x 4 pixels if at all possible..
i have worked out how to make text bigger but the smallest is 9 pixels x 6 pixels (i think)
Im trying to get something like 6 pixels x 4 pixels if at all possible..
- Thu Oct 21, 2010 8:28 pm
- Forum: Components (Other)
- Topic: glcd (ks0108) print number, problem??
- Replies: 3
- Views: 7840
Re: glcd (ks0108) print number, problem??
Hi Benj I feel like a bit of an idiot now. i found the problem. The variable in the print number command was in inverted commas, like you would with a string. This was making it do these random numbers, it was only after i posted that i realised what the problem was. There was one more thing i wante...
- Thu Oct 21, 2010 12:19 am
- Forum: Components (Other)
- Topic: glcd (ks0108) print number, problem??
- Replies: 3
- Views: 7840
glcd (ks0108) print number, problem??
Hi i am trying to setup a thermometer using a ks0108 type glcd 128x64 pixel. I have been able to type text onto the screen etc, and my ADC is working fine. Problem is when i use the Print Number function, it doenst do what i want it to, it just counts super fast, looks like its counting between 64 -...
- Sat Aug 21, 2010 7:08 pm
- Forum: Flowcode V2 & V3
- Topic: Lcd Help, Pin allocation
- Replies: 2
- Views: 3653
Re: Lcd Help, Pin allocation
This is my LCD pinout
Pin1...Vss
Pin2...Vdd
Pin3...V0
Pin4...RS
Pin5...R/W
Pin6...E
Pin7...DB0
Pin8...DB1
Pin9...DB2
Pin10..DB3
Pin11..DB4
Pin12..DB5
Pin13..DB6
Pin14..DB7
Pin15..CS1
Pin16..CS2
Pin17..Reset
Pin18..-10v
Pin19..LED+
Pin20..LED-
Pin1...Vss
Pin2...Vdd
Pin3...V0
Pin4...RS
Pin5...R/W
Pin6...E
Pin7...DB0
Pin8...DB1
Pin9...DB2
Pin10..DB3
Pin11..DB4
Pin12..DB5
Pin13..DB6
Pin14..DB7
Pin15..CS1
Pin16..CS2
Pin17..Reset
Pin18..-10v
Pin19..LED+
Pin20..LED-
- Sat Aug 21, 2010 5:08 pm
- Forum: Flowcode V2 & V3
- Topic: Lcd Help, Pin allocation
- Replies: 2
- Views: 3653
Lcd Help, Pin allocation
Im using the custom component for ks108 lcd Problem is im lost as i dont know which pin goes where, on the alphanumeric display you can select which port and pin each line goes to. with the custom component i cant do that. When code is generated in C i just get this //Common defines #define MX_DATA_...
- Tue Aug 03, 2010 5:28 pm
- Forum: Flowcode V2 & V3
- Topic: GLCD Problem
- Replies: 3
- Views: 3620
Re: GLCD Problem
Hi Its the Lcd from a nokia 6610, phillips chipset, (ebay knock off) i have tried looking for and also adding in the contrast settings but no good, i also found another thread on here that said you have to play with the colour settings in the code, but it gave no info on how to do such a thing. not ...
- Mon Aug 02, 2010 7:17 pm
- Forum: Flowcode V2 & V3
- Topic: GLCD Problem
- Replies: 3
- Views: 3620
GLCD Problem
Hi, I am experimenting with the GLCD in flowcode, so far i have managed to initialise it and also print text, the problem is that the text is extremely faint and i cannot get any colours to show on the lcd. i first thought it was the contrast settings but cant find any settings for this in the GLCD....
- Sat Jul 24, 2010 2:34 pm
- Forum: General Programming
- Topic: Help with phase control (ac dimmer)
- Replies: 0
- Views: 2479
Help with phase control (ac dimmer)
I am working on a lamp dimmer project. I understand how phase control works and what needs to happen in order to dim a lamp. I could do with a bit of help in setting it up in flowcode though. i know i need to set up a timer and then trigger it @ zero crossing, it then counts to a set value and then ...
- Wed Jul 07, 2010 8:57 pm
- Forum: General Programming
- Topic: Change font size on glcd
- Replies: 3
- Views: 3981
Re: Change font size on glcd
i cannot post in flowcode 4 part of the forum as i dont yet have a registered copy of flowcode, and before i purchase one i need to make sure i can do what i want it to do. while were on the subject will the student version create the code for the glcd?? and what is the difference between the studen...
- Wed Jul 07, 2010 11:30 am
- Forum: General Programming
- Topic: Change font size on glcd
- Replies: 3
- Views: 3981
Change font size on glcd
Does anyone know how to make the fontsize bigger for the glcd in flowcode 4, i need something twice the size of font 2
- Thu Feb 04, 2010 10:40 am
- Forum: C and ASM Programming
- Topic: Thermometer / Thermostat problems with display
- Replies: 1
- Views: 3646
Thermometer / Thermostat problems with display
Hi Guys I have been playing with Flowcode 4 to build a thermostat, so far i have the ADC input sorted and i have converted the INT value to a temperature value, and i can display this on the lcd Problem is i want this to be set with a 0.5f resolution so the temperature should read say 87.5f or 90.0 ...