Search found 14581 matches

by Benj
Tue Mar 04, 2008 12:04 pm
Forum: C and ASM Programming
Topic: pic16f8761 adc
Replies: 9
Views: 8169

Re: pic16f8761 adc

Hello

Are you using the VREF+ and VREF- pins or are you just wanting a sample based on the chips GND and VCC pins?

Also are you wanting an 8-bit result or the full 10-bits of resolution.
by Benj
Mon Mar 03, 2008 11:27 am
Forum: Components (Other)
Topic: NVM and DAC
Replies: 26
Views: 21814

Re: NVM and DAC

Hello Ondra I would look into Finite State Machine design. This should help you to design an effiecient program depending on received values. Also try to keep timeouts to a minimum. Eg if no data is available then do not wait for it. Maybe you could also add an interrupt for the hardware reception. ...
by Benj
Mon Mar 03, 2008 11:23 am
Forum: E-blocks
Topic: UART WITH 18F1320
Replies: 1
Views: 2742

Re: UART WITH 18F1320

Hello Saran You can use the UART onboard the 18F1320 but it will be fairly hard using this with the Dev board. The Uart is connected to portB so you could connect some hardware to the screw terminals on port B to do the voltage conversion from 5V to 12V for RS232. I think that a simple converter can...
by Benj
Fri Feb 29, 2008 1:02 pm
Forum: Components (Other)
Topic: NVM and DAC
Replies: 26
Views: 21814

Re: NVM and DAC

Hello Ondra The ascii code for an 'f' is 01100110 in binary. The ascii code for a '3' is 00110011 in binary. As you can see the data coming in is correct but being read in slightly incorrectly. The problem was an oversight on my part im afraid. The data is correct but is being shifted one too many t...
by Benj
Fri Feb 29, 2008 12:50 pm
Forum: Flowcode V2 & V3
Topic: 16F627A and internal oscillator
Replies: 1
Views: 2115

Re: 16F627A and internal oscillator

Hello Pierre

The following command will put the internal oscillator into the 4MHz mode.

Code: Select all

pcon.OSCF = 1;
Or you can use the set_bit command.

Code: Select all

set_bit(pcon, OSCF);
by Benj
Fri Feb 29, 2008 10:30 am
Forum: Flowcode V2 & V3
Topic: problem with baudrate
Replies: 6
Views: 4724

Re: problem with baudrate

Hello Andi

Which PICmicro are you using. I dont think any of the internal oscillators run at 19MHz. I have seen some that can be made to run at 8MHz.

Sounds like the problem is due to the chip running far slower then it actually is. Try reducing the speed in Flowcode to 4MHz or 8MHz.
by Benj
Fri Feb 29, 2008 10:26 am
Forum: Components (Other)
Topic: 12x2 LCD Character Displays , HD48770 compatible?
Replies: 9
Views: 9391

Re: 12x2 LCD Character Displays , HD48770 compatible?

Hello Michael Yes the number of characters on a single line should only affect the simulation. If you are using the standard Hitachi alphanumeric LCD driver then you get a fixed number of 40 characters per line, although obviously they are not all shown at once. This means the simulation should work...
by Benj
Thu Feb 28, 2008 6:43 pm
Forum: Flowcode V2 & V3
Topic: problem with baudrate
Replies: 6
Views: 4724

Re: problem with baudrate

Thats spot on. :mrgreen: You also have to tell the chip to use the XTAL configuration (HS in expert mode for a 19.6608MHz crystal). This is done through the Chip -> Configure menu. You will also have to switch your hardware to XTAL mode if you are using our programmer boards. Let us know if you are ...
by Benj
Thu Feb 28, 2008 4:47 pm
Forum: Components (Other)
Topic: pwm examples needed
Replies: 43
Views: 62209

Re: pwm examples needed

Hello Chevvy We have a 8 channel servo example that Sean has put together. This uses the Timer1 module and two hardware capture compare interrupts. The CCP1 Interrupt controls the individual Servo positions and the CCP2 interrupt controls the overall cycle of the timer1 counter (eg to fit in 8 diffe...
by Benj
Thu Feb 28, 2008 4:35 pm
Forum: Components (Other)
Topic: NVM and DAC
Replies: 26
Views: 21814

Re: NVM and DAC

Hello Ondra Your probably right that this will just come around again in a few months. So I have made a bit banged input example for you now. It is available with the receive example in the Flowcode examples section. http://www.matrixmultimedia.com/Flowcode_Examples.php Let me know if you have any p...
by Benj
Thu Feb 28, 2008 2:11 pm
Forum: Flowcode V2 & V3
Topic: KS0107 128x64 & LCD Displays
Replies: 16
Views: 11817

Re: KS0107 128x64 & LCD Displays

Hello Mikat

Yes I have managed to get hold of a few of these displays now. I just need to get some time organsied to complete the component code. If anyone has any code for these LCDs. Preferably in BoostC then it will greatly speed up the development time.
by Benj
Thu Feb 28, 2008 11:49 am
Forum: Components (Other)
Topic: NVM and DAC
Replies: 26
Views: 21814

Re: NVM and DAC

Hello Ondra Well for a start you are looping 10 times. In each loop you are shifting bits of data but there is only 8 bits of data available in a byte. Do a little at a time. Eg get the bit bang reception sussed first. Here is a basic example. Read Input Pin While - Input pin = high //Wait for start...
by Benj
Thu Feb 28, 2008 10:49 am
Forum: E-blocks
Topic: compiling and port error on Hp-488-00-03
Replies: 5
Views: 5191

Re: compiling and port error on Hp-488-00-03

Hello Saran Ah I see what you mean. The Board is designed to give the most flexibility across the range of PICmicro chips. However there are a couple of chips that do not match up with the expected output lines due to different configurations of Pins. You can refer to the schematic at the bottom of ...
by Benj
Wed Feb 27, 2008 1:01 pm
Forum: E-blocks
Topic: compiling and port error on Hp-488-00-03
Replies: 5
Views: 5191

Re: compiling and port error on Hp-488-00-03

Hello Saran Try switching your hardware to RC - Fast mode and then to XTAL mode using the slide switches and see if anything happens in either mode. This will point out if there is a configuration problem. Also make sure that the watchdog timr is disabled in the software configuration. chip's B0 out...
by Benj
Wed Feb 27, 2008 12:55 pm
Forum: Flowcode V2 & V3
Topic: quadrature encoders pic18f2331
Replies: 18
Views: 15427

Re: quadrature encoders pic18f2331

Hello You are correct, RC3 is the INT0 interrupt pin that you will have to use. The reason that Flowcode states this pin is RB0 is that 99% of the time this is correct. Even if both interrupts happen at the same time they will both be processed. It is probably not worth changing anything here as the...
by Benj
Wed Feb 27, 2008 12:51 pm
Forum: Flowcode V2 & V3
Topic: Connecting RS-232
Replies: 9
Views: 6139

Re: Connecting RS-232

Hello Alain

You do not have to code the configuration yourself. If you use the PPP tool from Chip -> Configure inside Flowcode then this information will be passed into the hex file upon compilation.
by Benj
Wed Feb 27, 2008 12:49 pm
Forum: Flowcode V2 & V3
Topic: Delay error pic 18f8722
Replies: 3
Views: 3045

Re: Delay error pic 18f8722

Hello

Flowcode embedds the config bits into the hex file so if you are sending the hex file via MPLAB then you should be OK. However if you are compiling the Assembler code with MPLAB then you will need to set the config bits in the Configure Menu.
by Benj
Wed Feb 27, 2008 12:42 pm
Forum: E-blocks
Topic: problem on posting the message
Replies: 1
Views: 2655

Re: problem on posting the message

Hello Saran The problem is with our WebHost. We have rently moved servers to an unlimited bandwidth server but due to total incompetency on the providers part the server is near useless. (I will not mention the providers name) We will be moving again either at the end of this week or the start of th...
by Benj
Wed Feb 27, 2008 12:38 pm
Forum: C and ASM Programming
Topic: 18f1320 I/O ports
Replies: 1
Views: 3513

Re: 18f1320 I/O ports

Hello Saran You are in Bank0 of memory. To modify the TRIS registers you have to be in bank 1 of memory. To change from bank 0 to bank 1 you have to set the RP0 bit in the status register, Refer to the device datasheet on how to do this. Once you have modified the TRIS registers you can move back in...
by Benj
Wed Feb 27, 2008 9:01 am
Forum: E-blocks
Topic: compiling and port error on Hp-488-00-03
Replies: 5
Views: 5191

Re: compiling and port error on Hp-488-00-03

Hello Saran The compiler has nothing to do with the hardware, The compilation errors are due to problems in your code. The compiler has pointed out line number of 44 and 55 both with illegal characters. I am guessing this is the problem. MOVWF TRISA, 0 ... MOVWF TRISB, 0 Try replacing these with MOV...
by Benj
Wed Feb 27, 2008 12:25 am
Forum: Flowcode V2 & V3
Topic: Decimal to BCD conversion
Replies: 2
Views: 3673

Re: Decimal to BCD conversion

Hello Your routine looks about spot on. I don't think that there is much improvement to be had there. One thing could be to put the algorithm into a loop so you can convert numbers greater then 99. However this would require an array of output data to store the nibble values. Also there is an assemb...
by Benj
Tue Feb 26, 2008 2:37 pm
Forum: Components (Other)
Topic: pwm examples needed
Replies: 43
Views: 62209

Re: pwm examples needed

Hello The reason for the delay is that without it the program would run so fast that you would not be able to see the LED changing brightness. Therefore you would also need this for the servo control. The PWM is always running at the exact frequency once it is started. It is the updating of the mark...
by Benj
Tue Feb 26, 2008 1:49 pm
Forum: Components (Other)
Topic: pwm examples needed
Replies: 43
Views: 62209

Re: pwm examples needed

Hello chevy There is a ADC controlled PWM example available from the downloads section of the website that will show you the LED getting dimmer and brighter with regards to the POT on AN1. You will have to switch the RA1 jumper from Digital to Analogue on your dev board to see it working. Its lookin...
by Benj
Tue Feb 26, 2008 1:11 pm
Forum: Flowcode V2 & V3
Topic: more instances
Replies: 3
Views: 2526

Re: more instances

Hello Brian I see what you mean now. Yes this is a problem with the current simulation technique. We are thinking about overhauling this for Flowcode V4. At the moment the best way to test and troubleshoot your comms programs are by sending the programs to the chips and using debugging LCD or LED me...
by Benj
Tue Feb 26, 2008 12:52 pm
Forum: Components (Other)
Topic: pwm examples needed
Replies: 43
Views: 62209

Re: pwm examples needed

Hello On the 16F88 the PWM output is RB0 only. The PWM simulation in Flowcode does not currently switch on and off the LED. Would turning the simulation pin and LED on or a different colour be a good way to simulate this. The RB0 is on all the time because you are assigning a value of 255. Try creat...