Search found 24 matches

by hazic
Wed Mar 28, 2012 10:34 pm
Forum: General / Misc
Topic: inputs and outputs on same port?
Replies: 7
Views: 10068

Re: inputs and outputs on same port?

thank you for trying to help

problem is solved!
Atmega16 arrives from factory with JTAG enable fuse set and for using all port C pins properly it is nessecary to disable JTAGEN fuse.
by hazic
Wed Mar 28, 2012 2:10 pm
Forum: General / Misc
Topic: inputs and outputs on same port?
Replies: 7
Views: 10068

Re: inputs and outputs on same port?

v4. i use single pin.
yes i have multimeter,to test the outputs i use LEDs . pins C2 and C5 are low, not changing
by hazic
Wed Mar 28, 2012 6:32 am
Forum: General / Misc
Topic: inputs and outputs on same port?
Replies: 7
Views: 10068

Re: inputs and outputs on same port?

Hi David

from what I can see in the datasheet port c can be input/output
but what about the data direction?
it is managed by flowcode when I use OUTPUT or SWITCH components right?
but is it ok to use bothe on the same port?

i dont know wht to do, I even tryied to change the device
by hazic
Tue Mar 27, 2012 10:07 pm
Forum: General / Misc
Topic: inputs and outputs on same port?
Replies: 7
Views: 10068

inputs and outputs on same port?

is there a problem with that?
i use PC6 and PC7 as switches
and I want PC2 and PC5 as outputs but these two are not working, the switches works fine.
device is atmega16
by hazic
Sat Jul 23, 2011 9:52 am
Forum: Bugs / Application Errors
Topic: help - bugs only when working with ext clock
Replies: 1
Views: 6574

help - bugs only when working with ext clock

when I change the fuse of AVR to internal clock the code works perfectly but when I change to external I have a lot of wierd bugs...
should I change anything in flowcode except of the frequency in project options?
by hazic
Fri Jul 22, 2011 8:03 am
Forum: General Programming
Topic: routine for calibrating RTC
Replies: 0
Views: 1859

routine for calibrating RTC

Hi I use RTC and I need a way to calibrate the clock capacitor without a scope, the RTC gives output of 1HZ Im thinking to dispay on lcd the number of muc pulses that i count in 1HZ of rtc and then I know that if I have 12MHZ crystal I should change my cap until I see 12000000 on the LCD what do you...
by hazic
Sun Jun 26, 2011 10:07 am
Forum: General / Misc
Topic: code got too big to fit in the device
Replies: 5
Views: 8997

Re: code got too big to fit in the device

its not a lot too big, it was ok but then I just added a few little changes and it didnt fit
not i'm in a position that if I add even one command it will not fit.
by hazic
Sun Jun 26, 2011 8:35 am
Forum: General / Misc
Topic: code got too big to fit in the device
Replies: 5
Views: 8997

code got too big to fit in the device

Hi

I use some components like LCD, I2c, switches, RS232, Step motor. is it possible that the compiled code includes also procedures of the components that I dont use in the code? because I cant fit the file in the device (Atmega16)
is there any option to shrink it in some way?

Thanks
by hazic
Wed May 11, 2011 2:49 pm
Forum: Components (Other)
Topic: character LCD gets scrambled
Replies: 8
Views: 10917

Re: character LCD gets scrambled

the LCD component can work with 8x2 LCD?
by hazic
Tue May 10, 2011 10:10 am
Forum: Components (Other)
Topic: character LCD gets scrambled
Replies: 8
Views: 10917

Re: character LCD gets scrambled

Do i have to change something for working with lcd 8*2?
If i select 16*2 or 20*2 in the componnent properties the lcd acts differently.
by hazic
Mon May 09, 2011 11:33 am
Forum: Components (Other)
Topic: character LCD gets scrambled
Replies: 8
Views: 10917

Re: character LCD gets scrambled

Thank you for your help Ive changed the clear LCD to start LCD and for now it seems like its ok. if the problem will appear again I will post the code here. I have another problem, I have LCD 2x8 connected to Atmega8 while its working it looks like the LCD is flickering and not working smooth. I tho...
by hazic
Thu May 05, 2011 5:03 pm
Forum: Components (Other)
Topic: character LCD gets scrambled
Replies: 8
Views: 10917

Re: character LCD gets scrambled

if that is the case (that interrupt is happenning in the middle of LCD routine) than how can I prevent it?
should I always disable INT before importent procedures and enable it again after the procedure is done?
the interupt only sets a flag
by hazic
Thu May 05, 2011 1:51 pm
Forum: Components (Other)
Topic: character LCD gets scrambled
Replies: 8
Views: 10917

character LCD gets scrambled

Hi I use 4 lines LCD, and sometimes the whole display is full of scrambled characters and it will not return to normal until I will reset the power for the controller. I have only one thought of what can couse this but I'm not sure, I use one INT pin that get a signal every one second, is it possibl...
by hazic
Sun Aug 01, 2010 7:09 am
Forum: General / Misc
Topic: problem working with internal oscilator
Replies: 1
Views: 5679

Re: problem working with internal oscilator

OK I disabled the CKDIV8 fuse and I think it's working good now!
but just to be sure, is there any configurations I need to make in the flowcode when I change the osilators?
by hazic
Sun Aug 01, 2010 6:32 am
Forum: General / Misc
Topic: problem working with internal oscilator
Replies: 1
Views: 5679

problem working with internal oscilator

Hi I'm trying to use the internal oscilator of the ATtiny2313 I compiled a simple program for test that switching a LED on and off every 1 second delay and I programmed it to the chip using AVRstudio after setting the fuse to internal oscilator 8mhz and while it run the LED is switching every about ...
by hazic
Tue Apr 27, 2010 3:07 pm
Forum: Components (Other)
Topic: I have a weird problem with LCD
Replies: 8
Views: 10403

Re: I have a weird problem with LCD

Ok. I'll watch it if I will get more corruption I'll use the start command once in a while...
Thank you it helped me a lot!
by hazic
Mon Apr 26, 2010 8:50 am
Forum: Components (Other)
Topic: I have a weird problem with LCD
Replies: 8
Views: 10403

Re: I have a weird problem with LCD

Thank you for your great advice! If I think now of what I did I see its really not smart to make such a big interrupt routine. As you said I moved all functions out of the interrupt and now the interrupt only change a flag which I check in the main. now just one more thing I'm not sure about, every ...
by hazic
Fri Apr 23, 2010 3:41 pm
Forum: Components (Other)
Topic: I have a weird problem with LCD
Replies: 8
Views: 10403

Re: I have a weird problem with LCD

and what about the LCD_CLEAR ? should I hange it to LCD_START?
by hazic
Fri Apr 23, 2010 3:28 pm
Forum: Components (Other)
Topic: I have a weird problem with LCD
Replies: 8
Views: 10403

Re: I have a weird problem with LCD

the LCD_ENABLE method seems easier to apply but once in a while I will loose some output to the LCD from the interrupt routine, is that right?
by hazic
Fri Apr 23, 2010 2:00 pm
Forum: Components (Other)
Topic: I have a weird problem with LCD
Replies: 8
Views: 10403

Re: I have a weird problem with LCD

Hi,

Yes I have interrupt and both interupt and the main have LCD functions.
How can I prevent the interrupt from running in the middle of LCD function from the main? (the interrupt is occuring every 1 second)

Thanks
by hazic
Fri Apr 23, 2010 5:53 am
Forum: Components (Other)
Topic: I have a weird problem with LCD
Replies: 8
Views: 10403

I have a weird problem with LCD

I use the LCD component and I have a weird bug in my program, it all works fine but once in a while when the LCD is changing the display I get a scrambled screen with random characters on random places of the LCD. Do you have an idea of what can cause such a thing?
by hazic
Fri Mar 12, 2010 1:08 pm
Forum: Flowcode V2 & V3
Topic: why my output pin starts high??
Replies: 1
Views: 2675

why my output pin starts high??

I'm working with AVR (atmega16) and using the LED's component (the pins not really connected to LED's but serves as output for something else) The problem s that the component is set for all port A and when the chip starts one of the pins (PA4) always start in high state, all other pins are low. If ...
by hazic
Thu Feb 18, 2010 3:43 pm
Forum: General / Misc
Topic: How can I use 2d arrays?
Replies: 2
Views: 3720

Re: How can I use 2d arrays?

Just to be sue, you mean to change avariable according to the switches (for index) and to use decisions for each index number so that each decision will display a different stage of the menu?
by hazic
Thu Feb 18, 2010 1:09 pm
Forum: General / Misc
Topic: How can I use 2d arrays?
Replies: 2
Views: 3720

How can I use 2d arrays?

I need to use 2d array (of chars or strings), does flowcode support that? I tryied to define an array inside "c code" but when i try to approach the array in other flowcode functions flowcode dont recognize it. What i'm trying to do is to build a menu for 4*16 LCD so i can scroll the menu according ...