Search found 37 matches

by skartalov
Tue Mar 17, 2020 6:33 am
Forum: Compiler
Topic: SUART stopped after update
Replies: 4
Views: 834

Re: SUART stopped after update

I compiled with the old SUART, and now it works again!

I sent you my code on PM, check.
by skartalov
Mon Mar 16, 2020 4:34 pm
Forum: Compiler
Topic: SUART stopped after update
Replies: 4
Views: 834

SUART stopped after update

Just updated the SF and compiled a project, the SUART doesn't work anymore.

What changes it has?

How can I obtain the previous version of SUART?
by skartalov
Sat Feb 02, 2019 2:21 pm
Forum: Compiler
Topic: Cannot interface with i2c device
Replies: 6
Views: 1786

Re: Cannot interface with i2c device

OK, I got it running! Thanks for your help!
by skartalov
Fri Feb 01, 2019 4:18 pm
Forum: Compiler
Topic: Cannot interface with i2c device
Replies: 6
Views: 1786

Re: Cannot interface with i2c device

I dont have subroutine: check_addr()

OK, what means COMMAND_BIT($80)?

should I understand that I have to send two command bytes ($80 and $12) in order to read from register (address $12)?
by skartalov
Fri Feb 01, 2019 1:00 pm
Forum: Compiler
Topic: Cannot interface with i2c device
Replies: 6
Views: 1786

Re: Cannot interface with i2c device

I shifted the address, but still no success.

I wonder if I initialize the sensor correctly!

Would you mind take a quick look at the documentation, as on power on the sensor is in sleep state, and needs to be wake up first.

Thanks!
by skartalov
Fri Feb 01, 2019 8:55 am
Forum: Compiler
Topic: Cannot interface with i2c device
Replies: 6
Views: 1786

Cannot interface with i2c device

Hi, i've been trying this for a few days already- no success. I am trying to connect to TCS34725 color sensor via i2c, but seems like no any connection. When I try to read from address it always return 255. Here it is my code: Device = 18F26k20 Clock = 64 Config FOSC = INTIO67 #option I2C_SCL = PORT...
by skartalov
Fri Oct 18, 2013 12:34 pm
Forum: Compiler
Topic: Compiller error
Replies: 2
Views: 1500

In fact, it happens when I have files in my DROPBOX folder.
When I moved to c:\, it works OK. But this is strange, cause I always used to have my work files in DROPBOX, until now.

Anyway, it is probably permission error...
by skartalov
Thu Oct 17, 2013 7:12 am
Forum: Compiler
Topic: Compiller error
Replies: 2
Views: 1500

Compiller error

Hi,

recently I startet to get this error, while compiling. After that, the SF hands, and needs to be closed in task manager.

This may happened after installing FIREWING on the same PC, I guess, but now sure. I am using the latest version of SF.

Please, advice?


Image
by skartalov
Thu Apr 04, 2013 8:45 am
Forum: User Modules
Topic: ST7565 GLCD Support
Replies: 23
Views: 5102

As I promised, here it is the library for ST7565R controller! :-) It uses 6800 interface mode, and supports all graphics shape commands, as well as SetImage, Write Text , etc. Add ST7565R controller into device select option in GLCD.bas: // validate model... #option GLCD_MODEL = ST7565R #IF Not (GLC...
by skartalov
Wed Apr 03, 2013 2:14 pm
Forum: User Modules
Topic: ST7565 GLCD Support
Replies: 23
Views: 5102

Thanks David,

following your advices, I suceed to integrate the SSD1306 driver into SwordFish (See my other topic).

Next I will make the ST7565R driver and share with everyone.
by skartalov
Wed Apr 03, 2013 12:39 pm
Forum: User Modules
Topic: SSD1306 OLED controller support
Replies: 11
Views: 9236

GLCD support for OLED SSD1306

As I don't know exactly how to post to WIKI, I will ask someone to do so! ------------------ I am finally ready for integrate this SSD1306 OLED controller into SWORDFISH. It uses 8080 Mode, parallel interface, with RD and WR signals. So here it goes: Add this to your GLCD.BAS: // import ssd1306 driv...
by skartalov
Thu Mar 21, 2013 11:12 am
Forum: User Modules
Topic: ST7565 GLCD Support
Replies: 23
Views: 5102

And here it comes the final design of my device.
The are contrast and brighness function for the display.
The the brighness, I use PWM to power the LCD LED's.

Image
by skartalov
Wed Mar 13, 2013 3:24 pm
Forum: User Modules
Topic: SSD1306 OLED controller support
Replies: 11
Views: 9236

This is the final design of the device!

Hope you like it.

And best of all -> It is powered by SWORDFISH :-)

Image
by skartalov
Tue Mar 12, 2013 2:17 pm
Forum: User Modules
Topic: ST7565 GLCD Support
Replies: 23
Views: 5102

ST7565 GLCD Support

I succeed to run the GLCD using ST7565 controller. These GLCDs are very cheap ($12), 128x64 pixels resolution, they have everything integrated and they need just 3,3V power supply. The LCD module: http://www.mtech-bg.com/WO12864C2.pdf The ST7565 Datasheet: http://www.mtech-bg.com/ST7565P.pdf This LC...
by skartalov
Sun Mar 10, 2013 4:20 pm
Forum: User Modules
Topic: SSD1306 OLED controller support
Replies: 11
Views: 9236

I connect this on PORTB using the internal pull ups.
I have sub routine that reads the rotary switches and detects motion, then return byte variable, which contains the direction of rotation.